Great explanation, thank you! :)
Type: Posts; User: drawar
Great explanation, thank you! :)
Yes, but I still don't understand the if statement, I've seen if (i%2 == 0) .... but not if(i%2)
Thanks for clarifying my guess. I just don't know what (i%2) means, and why it's true in this case.
int i = 1;
for ( ; ; )
if (i >= 10)
break;
else
if (i % 2)
i += 2;
else
i -= 2;
printf("%d", i);