0

Why I get 0 for average in sentinel array?

https://code.sololearn.com/cTGT5pCafaFq/?ref=app

28th Jan 2020, 1:43 PM
jinhee
5 odpowiedzi
+ 2
Can you just explain what you are trying to do because i do not understand the reason behind declaration of a couple of variables and the way they are used.
28th Jan 2020, 2:01 PM
Avinesh
Avinesh - avatar
+ 1
Okk. thank you very much
28th Jan 2020, 2:16 PM
jinhee
0
Please help me😭😭
28th Jan 2020, 1:52 PM
jinhee
0
This program is sentinel in array to calculate average of integer.it will stop until user entered -1. The problem is my average always zero but the sum is correct
28th Jan 2020, 2:06 PM
jinhee
0
But the question is maximum 50 integer entered
28th Jan 2020, 2:12 PM
jinhee