Loops/While: Difference between revisions

m
Line 519:
ENDWHILE
'Output starts with 512 and ends with 0.
 
'Putting the following in the loop will produce output starting with 1024 and ending with 1:
'PRINT X
'X=X/2
 
PRINT:PRINT"Press any key to end."
 
'Keep the console from closing right away so the figures can be read.