write the algorithm for solving the average of five numbers
Answers
Answered by
6
Algorithm: Input: two numbers x and y Output: the average of x and y
Step 1 : input x,y
Step2: sum=0,average=0 Step3:sum = x + y Step4:average = sum /2
Step5: print average.
Similar questions