Loops/Continue: Difference between revisions

Content added Content deleted
No edit summary
Line 1,049: Line 1,049:


for num = 1 to 10
for num = 1 to 10
if ( num mod 5 )
if ( num mod 5 )
NSLog(@"%ld, \b",num)
NSLog(@"%ld, \b",num)
else
else
NSLog(@"%ld")
NSLog(@"%ld",num)
end if
end if
next
next