Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- start values:
- x= 0
- y=30
- -------------
- outer = 0 inner = 4
- x = 6 y = 28
- inner = 3 y = 26
- //break because x = 6 then subtract 2 from y
- y = 24
- --------------
- outer = 1 inner = 4
- x = 12 y = 22
- --------------
- outer = 1 inner = 3
- x = 18 y = 20
- --------------
- outer = 1 inner = 2
- x = 24 y = 18
- y = 16
- //innerloop condition met
- --------------
- outer = 2 inner = 4
- x = 30 y = 14
- --------------
- outer = 2 inner = 3
- x = 36 y = 12
- --------------
- outer = 2 inner = 2
- x = 42 y = 10
- y = 8
- //subtract 2(outer loop y)
Add Comment
Please, Sign In to add comment