+ 1
I'm trying to write some code
Output of this code is 5 loops of input this recieve a number and then bring the number to find an average (Sorry if my grammar is bad. I'm not good at English.)
1 Answer
+ 2
If you have 5 inputs, then just add them all to a sum and divide them by 5 again. There you have the average.
type sum = input1 + input2 + input3 + input4 + input5;
type average = sum / 5;