Computer Science, asked by lallaallala, 7 months ago

write an algorithm to find the sum of four​

Answers

Answered by gupukaur1503
5

Explanation:

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.

Answered by shomekeyaroy79
6

Algorithm :

Step 1 : Start

2 : Input num1, num2, num3

3 : Calculate avg = (num1 + num2 + num3)/3)

4 : Output avg

5 : Stop

Attachments:
Similar questions