Feb 6, 2015 at 2:06am UTC
% gives you the remainder after division. 7%3 == 1 because 7/3 has a remainder of 1.
Your code will loop 3 times, each time printing 2 numbers, i, and 14%i:
first iteration (i=1):
- prints i (1 )
- prints 14%i ... 14/1 has no remainder (0 )
second iteration (i=2):
- prints i (2 )
- prints 14%i ... 14/2 has no remainder (0 )
third iteration (i=3):
- prints i (3 )
- prints 14%i ... 14/3 is 4 remainder 2
All that output crammed together: 102032
Last edited on Feb 6, 2015 at 2:08am UTC
Feb 6, 2015 at 2:53am UTC
I figured it out before u answered, omg was it easy lol. Thank u though. Wow. After I kept looking at it I realized how to do it . Man I love this stuff!!!!
Last edited on Feb 6, 2015 at 2:54am UTC