Jump to content

Loops/Continue: Difference between revisions

Line 2,269:
pop ebx
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>
{{Out}}
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.