0
Can you explain this
Int =i for(i=0;i<10,i+=10) System.out.println(i)
8 Answers
+ 5
The semicolon!!!
+ 1
There is a semi colon, you may missing
int i;
for(i=0;i<10,i+=5); //semi colon after
System.out.println(i);
Output : 10
int i;
for(i=0;i<10,i+=5) //no semi colon after
System.out.println(i);
Output :
0
5
println prints next output in new line..
print continue in same line.. then 05
0
But if i+=5 then output?
0
But in sololearn challenge they answering me 10
0
codemonkey plz read above and i had written it println actually its print only so 05
0
Thanks man
0
Jayakrishnađźđłi got it i missed it thats make a lot difference
0
It's only print 0 then loop is terminated