Write a complete program to prompt for and input a number, and then compute 2 to the

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 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 .

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: