0
Less lines of code is not always better. More readable code is always better though. If extra lines are making the code inefficient, then that could be a case to cut lines. However, in this case, i++ is not repeating anything unnecessary so putting it on its own line is just making it easier to understand what is going on.



