How can I write all powers of 2 from 2^0 up to 2^12 using while loop statement in C++? on the screen it must be seem like 2^0 2^1 2^2 2^3 2^4.....2^12.
Can you help me please about this code.Thanks a lot.