RosettaCodeData/Task/Loops-While/Cache-ObjectScript/loops-while.cos

9 lines
158 B
Text
Raw Permalink Normal View History

2019-09-12 10:33:56 -07:00
WHILELOOP
2020-02-17 23:21:07 -08:00
set x = 1024
while (x > 0) {
write x,!
set x = (x \ 2) ; using non-integer division will never get to 0
}
2019-09-12 10:33:56 -07:00
2020-02-17 23:21:07 -08:00
quit