Ask coding questions

← Back to all posts
I Keep getting 1 compile error everytime I Run,
JaedanSmith (0)

I need help discovering the 1 error i keep receiving when i run this java script

Commentshotnewtop
ash15khng (295)

Remove the semicolon after the while statement. By having it there, the code keeps checking if I >= 1, but because you have the semicolon, the code checks it, it evaluates as true, but nothing happens because you stop the next lines from running with the semicolon.

mwilki7 (193)

Try removing the semicolon after the while statement:
while(I >= 1);