Write an algorithm to calculate the average of two numbers
Answers
Answered by
30
Algorithm to calculate average of two numbers.
Algorithm
Step 1 : Start
Step 2 : Input number1, number2
Step 3 : sum = 0 ; average = 0
Step 4 : Calculate sum = (number1 + number2)
Step 5 : Average = sum / 2
Step 6 : Print average of two numbers
Step 7 : Stop
Answered by
4
Start
Input A and B
Avg =(A+B)/2
Print AVG
Stop
Similar questions