algorithm to add sum of two numbers
September 24, 2022

Algorithm to Add [Sum] two numbers

In this tutorial, we are going to write an algorithm to Add or Sum of two numbers. using this algorithm we can write a program to Add [Sum] two numbers in most programming languages like C, C++, Java, and Python.


Algorithm to Add [Sum] of two numbers.

1. Read A and B.
2. Set SUM := A + B.
3. Write SUM.
4. Exit.

Here in the above algorithm we first read two integer inputs A and B. Then we set the value of the A and B variables into the SUM variable. and then write the SUM variable value on the output screen and exit from the program.

Also, Read
  1. Algorithm to Find Maximum of Two Numbers
  2. Algorithm to Find Maximum of Three Numbers
  3. Algorithm to Input percentage From user and Print grade
  4. Algorithm to Print the Series 1 to N using for loop
  5. Algorithm to Print the Series 1 to N using while loop
  6. Algorithm to Print the Series 1 to N using Do While loop
  7. Algorithm to Reverse a given Number
  8. Algorithm to Find Whether a Number is Prime or Not
  9. Algorithm for Linear Search in Array
  10. Algorithm to Calculate Factorial using Function

Leave a Reply

Your email address will not be published. Required fields are marked *