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

13 lines
164 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07: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