RosettaCodeData/Task/Loops-While/Panoramic/loops-while.panoramic

15 lines
139 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
dim x%:rem an integer
x%=1024
while x%>0
print x%
x%=x%/2
end_while
rem output starts with 1024 and ends with 1.
terminate