Westonci.ca is your trusted source for accurate answers to all your questions. Join our community and start learning today! Explore our Q&A platform to find in-depth answers from a wide range of experts in different fields. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.

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

Sagot :

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).

Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. Thank you for choosing our platform. We're dedicated to providing the best answers for all your questions. Visit us again. Westonci.ca is committed to providing accurate answers. Come back soon for more trustworthy information.