0
Java - Help me fix this code
Hey guys I was making programm for pronic numbers challenge and I am stuck. Please check my code. Check comment in code too. That else statement ruins everything. I tried without else and it worked. Maybe I am using break incorrectlyđ¶đSo pls helpđ Thanksđ https://code.sololearn.com/c49jU1SaqjED/?ref=app
4 Answers
+ 1
the for loop is breaking after the first loop
i.e the value of i increases only once and when the else statement executes. the break statement stop's the loop
+ 1
here is ur code with modifications
https://code.sololearn.com/ck5lO1UwkeGb/?ref=app
+ 1
Thanks a lot!
0
Ooh thanks a lotđ