+ 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.)

16th Aug 2020, 11:52 AM
aÆüÑn kknon
aÆüÑn kknon - avatar
1 Odpowiedź
+ 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;
16th Aug 2020, 2:37 PM
Mirko Dreher
Mirko Dreher - avatar