Well, you have the variables switched around.. It would be this
int average = scoreSum/count
In order to get the Sum of the Scores, you have to add them to a variable each time you get a score...
Type: Posts; User: Staticity
Well, you have the variables switched around.. It would be this
int average = scoreSum/count
In order to get the Sum of the Scores, you have to add them to a variable each time you get a score...
If you want to figure out the average. First know the formula.. Surely you know this (sum of values / # of values).. I'm sure you can go from there.. (if you wrote this code on your own)
G'luck,...