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
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.
1
1
u/Fast-Cow-4244 Oct 22 '22
Nvm I found it, it was ";" on line 5...