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

WHAT CRIMES ARE COMMITTED BY BOTH MEN AND WOMEN (give 5 crimes)
o put on Your Thinking Cap! $ Challenging Practice 1. Michelle got an average score of 80 on two tests. What score must she get on the third test so that her av
Which of these shapes is not a parallelogram? HELP ASAP 15 BRAINLY POINTS! TYSM GOD BLESS YOU AND YOUR FAMILY!
A rectangular prism has a length of 18 meters, a height of 10 meters, and a width of 5 meters. What is its volume, in cubic meters?
find the LCM lowest common multiple and the HCF highest common factor of 40 and 56
Please please please help me with this pleasseee!!!
Please help me no links pls
Please help i am give brainliest what form of energy is available from an electrical wall outlet A. AC power B. DC power I don't want to see any link If i do
The questions are in the image above.
Complementary of supplementary? Find the value of x