int n =2;


while(n < 1000)

{

cout << n << endl;


n *= 2;

}


?????