Computer Science, asked by Ranadevsahu, 11 days ago

Write an algorithm to input two number and find their sum and difference.​

Answers

Answered by anjusrivastava447
4

Answer:

Write an algorithm to add two numbers entered by user.

Algorithms In Programming:->

Step 1: Start

Step 2: Declare variables num1, num2 and sum.

Step 3: Read values num1 and num2.

Step 4: Add num1 and num2 and assign the result to sum.

sum←num1+num2

Step 5: Display sum

Step 6: Stop

Answered by vedashreewadekar14
3

Answer:

Step 1: Start.

Step 2: Accept the first number A.

Step 3: Accept the second number B.

Step 4: Sum => A + B.

Step 5: Display SUM.

Step 6: DIFFERENCE => A - B.

Step 7: Display DIFFERENCE.

Step 8: Stop.

------------------------------------------

/ Given by my teacher, hope it helps! ☻

Similar questions