Question: Write a complete program to prompt for and input a number, and then compute 2 to the power of the number that was input. The
Write a complete program to prompt for and input a number, and then compute 2 to the power of the number that was input. The form of the input and output can be found below, and as always be careful with the vertical and horizontal spacing.
Input and Output:
Enter the number: 4.0
Two to the power of 4.0 is 16.0 .
Step by Step Solution
3.35 Rating (155 Votes )
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
