RosettaCodeData/Task/Loops-While/XPL0/loops-while.xpl0
2023-07-01 13:44:08 -04:00

8 lines
155 B
Text

code CrLf=9, IntOut=11;
int I;
[I:= 1024;
while I>0 do
[IntOut(0, I); CrLf(0);
I:= I>>1; \(same as I/2 for positive I)
];
]