Question: In c++. Write a for loop that finds the power of 2 (do not use built-in function pow) of ten consecutive numbers, e.g., 1 to

In c++.
Write a for loop that finds the power of 2 (do not use built-in function pow) of ten consecutive numbers, e.g., 1 to 10 while it skips the calculation of the middle one, e.g., 5. Write a while loop that does the same. Write a do while loop that does the same but instead of skipping the middle number it exits from the loop when it reaches the middle of the loop Note: Use continue for the first two loops and break for the last one
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
