Computer Science, asked by comfortotwe, 3 months ago

algorithm to find the average of 5 numbers

Answers

Answered by arshgill0963
1

Answer:

Algorithm: Input: two numbers x and y Output: the average of x and y Step 1 : input x,y Step 2: sum=0,average=0 Step 3:sum = x + y Step 4:average = sum /2 Step 5: print average

Answered by santoshdubey55
0
To find the average of 5 numbers

For example

Find the average of 1,2,3,4,5

The answer is 3

Explain

Add all the numbers which gives you in question

1+2+3+4+5+ = 15

Then count the numbers
So,

Their are 5 numbers gives you in question

So, the formula is

15/5 = 3


‘HOPE ITS HELPFUL FOR YOU ‘

‘THANK YOU ‘
Similar questions