RosettaCodeData/Task/Loops-While/C++/loops-while-2.cpp

3 lines
63 B
C++

for (int i = 1024; i>0; i /= 2)
std::cout << i << std::endl;