RosettaCodeData/Task/Loops-While/XPL0/loops-while.xpl0

9 lines
155 B
Plaintext

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)
];
]