Question: Task 1: Create a program that will display the value of 2 with the following guidelines - You should use scanf to ask for the
Task 1: Create a program that will display the value of 2" with the following guidelines - You should use scanf to ask for the desired value of n. - Use an inner loop to calculate the value of 2". - Use an outer loop to repeat this process 5 times. In other words, you will ask the user for the value of n (then the user will provide you with this value). Next, you calculate 2" depending on this "n" value; then, you print the result; and then, you ask the user for another "n" value. You repeat the process 5 times
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
