Question: In c++ programming language: Write a loop (you dont have to write a complete program, just the loop and the variable declarations) that displays the
In c++ programming language:
Write a loop (you dont have to write a complete program, just the loop and the variable declarations) that displays the following set of numbers from 1 to 4096 (hint: each term is a power of 2. E.g. pow(2,0), pow (2,1), pow (2,2), etc.):
1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096
Choose the loop (while, do-while, or for) that makes the most sense for the problem.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
