Algorithm Sum of two numbers
Overview
In this tutorial, we will learn the algorithm to read two numbers and find their sum. The problem to solve is to find the sum of the given numbers.
Algorithm
Inputs: First number, Second number.
Output: Sum of the two numbers.
Step 1: Start
Step 2: Read the first number
Step 3: Read the second number
Step 4: Add the two numbers to compute the sum
Step 5: Print the sum
Step 6: Stop
Pseudocode
START
READ number1
READ number2
Sum <- number1 + number 2
PRINT Sum
END