Jump to content

Loops/While: Difference between revisions

Line 233:
WHILE X>0
 
PRINT X
X=X/2
PRINT X
 
ENDWHILE
'Output starts with 5121024 and ends with 01.
 
'Putting the following in the loop will produce output starting with 1024512 and ending with 10:
'X=X/2
'PRINT X
'X=X/2
 
PRINT:PRINT"Press any key to end."
Cookies help us deliver our services. By using our services, you agree to our use of cookies.