RosettaCodeData/Task/Loops-While/C/loops-while-1.c

6 lines
62 B
C

int i = 1024;
while(i > 0) {
printf("%d\n", i);
i /= 2;
}