Loops/Continue: Difference between revisions

Content added Content deleted
Line 2,269: Line 2,269:
pop ebx
pop ebx
ret
ret
</lang>
{{Out}}
<pre>
1, 2, 3, 4, 5
6, 7, 8, 9, 10
</pre>

=={{header|XBasic}}==
{{works with|Windows XBasic}}
<lang xbasic>
PROGRAM "loopcontinue"

DECLARE FUNCTION Entry()

FUNCTION Entry()
FOR i% = 1 TO 10
PRINT i%;
IF i% MOD 5 = 0 THEN
PRINT
DO NEXT ' It looks like DO FOR backs to the FOR with the current value of i%
END IF
PRINT ", ";
NEXT i%
END FUNCTION
END PROGRAM
</lang>
</lang>
{{Out}}
{{Out}}