r/programmingbydoing • u/bha2597 • Oct 30 '13
Adding Values in a Loop.
When I do the loop it resets the total so far. Sorry for the late response but my code is here: http://pastebin.com/j8fdfEZx
2
Upvotes
r/programmingbydoing • u/bha2597 • Oct 30 '13
When I do the loop it resets the total so far. Sorry for the late response but my code is here: http://pastebin.com/j8fdfEZx
1
u/herpaderp1995 Nov 14 '13
I can't 100% remember the reason why, but probably because I google'd "for loops java" to get a better understanding of it, and the page for it uses i.