simpforkittynoir
simpforkittynoir simpforkittynoir
  • 06-09-2021
  • Computers and Technology
contestada

Write an algorithm to find addition, subtraction, and multiplication of 2 numbers

Respuesta :

bisikapokhrel91
bisikapokhrel91 bisikapokhrel91
  • 06-09-2021

Answer:

Addition

Step 1: Input the two numbers, a and b.

Step 2: Output a + b.

Step 3: Output a - b.

Step 4: Output a * b.

Step 5: If b = 0 output “undefined”.

Step 6: Else output a / b.

subtraction

Step 1 If ( a < b ) then there will be no answer .

step 2f ( a = b ) then all the numbers greater than a are the answer so there will be infinite solutions possible.

Step 3 If ( a > b ) Suppose x is an answer to our equation. Then x divides (a – b).

Answer Link

Otras preguntas

Fill in the blank. The sum of a rational number and an irrational number is ________. An example is 8 + π.
Many plant cells have a single, large _________ __________ that is filled with fluid. A) central vacuole B) Golgi apparatus C) lateral attachment D) endoplas
According to Michael Meister's introduction to the inferno, why does Dante's story still have a powerful effect on its readers hundreds of years after its creat
Edward bikes the same route to and from school each day. After 28 school days he bikes a total distance of 389.2 miles. Edward bikes 13 mile each day. If Edward
Which statement bestsummarizes the role citizens play in a democracy? A. Citizens are the defenders ofthe country from foreign infuence. B. Citizens are th
What does 6 2/7 - 2 11/14 equal?
is a lizard a consumer
A tariff is another name for
Check all that apply
How are the stories of moses, jesus, and muhammad alike and different?