AngryDear god help me (java)

Posts 12 of 2 · Page 1 of 1
Dear god help me (java)
thanks got it working
1. You are resetting total to 0 every time you iterate through the loop
2. total is of type int. This means it only stores integers, not 0.5. Dividing total by something will result in truncation, not rounding. In other words, 0.99999999 will be truncated to 0.
3. I really can't be stuffed trying to decrypt weirdly formatted code, so I'll stop here.
Posts 12 of 2 · Page 1 of 1

Post a Reply

Tags for this Thread

None

Need help?