44,281 views
0 votes
0 votes
Algorithm to find out average of 4 numbers​

User Martin Olsen
by
2.7k points

2 Answers

26 votes
26 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 Bruno Monteiro
by
3.0k points
29 votes
29 votes

Answer:

answer = range(1,5)

print(AVG(answer))

Step-by-step explanation:

python script

User Jeet Parmar
by
3.4k points