152k views
24 votes
Algorithm to find out average of 4 numbers​

2 Answers

9 votes
As for averaging just four numbers, that's just a formula, say the numbers are a, b, c, d, then their average is simply x^ := (a + b + c + d)/4. This assumes you're talking about arithmetic average, i.e., the number x^ that, when replacing each of the values of which you compute the average, yields the same sum.
User Hasanaydogar
by
6.9k points
7 votes

Answer:

answer = range(1,5)

print(AVG(answer))

Step-by-step explanation:

python script

User Rahul Nikate
by
6.6k points