The former will terminate the second for loop early at the first number that is zero.
The latter will run both for loops 10 times, no matter what.
1st terminates printing if it encounters 0.
2nd code does not print 0 because of if()
statement.
Last edited on
Oh yea...how did I miss it!