+ 1
Why is my for loop returning unexpected number on line 7?
https://code.sololearn.com/WY1Z3Va1kcKP/?ref=app Why is my code to print about 40 numbers incremented by 1 not working?
3 Respuestas
+ 6
@Paul, it's not because of that.
It's because you can't do "i++1".
You don't need that 1 at the end, because it increments "i" by itself.
So this:
i++1&&j++1
goes to
i++&&j++
and i would recommend using a "," instead of the comparison statement "&&":
i++, j++
+ 2
i think it is the && between the i++ and the j++ the it with a ; The && is mostly used fit comparing.
0
Thank you