write algorithms for additional of two numbers.
Answers
Answered by
0
An algorithm is a set of well-defined instructions in sequence to solve a problem.
Now, algorithm for sum of two numbers is as follows:
Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values for 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
Now, algorithm for sum of two numbers is as follows:
Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values for 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
Similar questions
Math,
1 month ago
English,
1 month ago
Computer Science,
3 months ago
English,
9 months ago
English,
9 months ago