Courses
Log inStart Learning AI
Courses
Log inStart Learning AI
0

Why this output infinite loop?

for (int I=0; I<5;){ I = I++; System.out.println(I); }

javaloops
13th Jul 2018, 2:13 AM
Afresia
Afresia - avatar
2 Answers
+ 6
https://www.sololearn.com/Discuss/1271878
13th Jul 2018, 2:23 AM
Hatsy Rei
Hatsy Rei - avatar
+ 1
I see, thank you Hatsy Rei
13th Jul 2018, 3:19 AM
Afresia
Afresia - avatar

Often have questions like this?

Learn more efficiently, for free:

  • Introduction to Python

    7.1M learners

  • Introduction to Java

    4.7M learners

  • Introduction to C

    1.5M learners

  • Introduction to HTML

    7.5M learners

See all courses
Hot today
Best language?
0 Votes
Bro can you fix yt error?
0 Votes
Anyone have song names? Comment your favorites here for a project im working on
1 Votes
Need suggestions to learn AI and ML
1 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Java full stack
0 Votes
Best code for creating games?
0 Votes
Duration of heart refilling
0 Votes
Why isn't a linked video not working
0 Votes