Computer Science, asked by ernestkwawmiezah99, 4 months ago

write the algorithm for solving the average of five numbers

Answers

Answered by khushiwaskale
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