MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/y9q1ra/574_better_sum/
r/codehs • u/Fast-Cow-4244 • Oct 21 '22
Can someone please help? Idk what I'm doing wrong
3 comments sorted by
1
Nvm I found it, it was ";" on line 5...
2
Inside the for loop add a println just to help with debugging. Use it to print out START, END, i and sum each time through the loop. That will give you much more info to figure out the issue.
remove semicolon on line 5
1
u/Fast-Cow-4244 Oct 22 '22
Nvm I found it, it was ";" on line 5...
2
u/llynglas Oct 21 '22
Inside the for loop add a println just to help with debugging. Use it to print out START, END, i and sum each time through the loop. That will give you much more info to figure out the issue.
1
u/Boring_Thing_1363 Dec 22 '22
remove semicolon on line 5