write an algorithm for addition of two integer
Answers
Answered by
29
Answer:
Algorithm for the addition of two integers.
Explanation:
The algorithm to add two numbers.
1) Declare variable ( Two variable to store the number input by the user and one variable is used to store the output).
2) Take the input of two numbers.
3) Apply the formula for addition.
4) Add two numbers.
5) Store the result in a variable.
6) Print the result.
Answered by
14
An algorithm for the addition of two integers:
- Step 1: Start
- Step 2: Declaring two variables a, b to store the integers from the user.
- Step 3: Taking a variable sum to store the addition of two integers as the output.
- Step 4: We use the formula of addition by using the sign '+'.
- Step 5: The result of addition is stored in the variable 'sum'.
- Step 6: Displaying the result 'sum'.
- Step 7: End
Similar questions
English,
8 months ago
Science,
1 year ago
Math,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago