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

5 lines
58 B
C

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