RosettaCodeData/Task/Loops-While/PureBasic/loops-while.basic

13 lines
164 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
If OpenConsole()
x.i = 1024
While x > 0
PrintN(Str(x))
x / 2
Wend
Print(#CRLF$ + #CRLF$ + "Press ENTER to exit")
Input()
CloseConsole()
EndIf