algorithm to find the average of 5 numbers
Answers
Answered by
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
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 ‘
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
Math,
1 month ago
Business Studies,
1 month ago
English,
1 month ago
Math,
3 months ago
Social Sciences,
3 months ago
English,
9 months ago
Math,
9 months ago