In this post, we will see an algorithm and flowchart to add two numbers. It will be applicable to write program in any programming language.
Required knowledge: Basics of Algorithm writing and flowchart drawing.
Step 1: Start
Step 2: Declare variables num1, num2 and sum.
Step 3: Read values for num1, num2.
Step 4: Add num1 and num2 and assign the result to a variable sum.
Step 5: Display sum
Step 6: Stop