Question: Using python Write a program that computes X N where X is a floating point number and N is a positive integer. The program informs
Using python Write a program that computes X N where X is a floating point number and N is a positive integer. The program informs the user that N must be positive if the user enters a negative value. Of course, X N = X * X * X * ... * X -------------------- N times
The user dialog will look something like this:
Enter X 1.3
Enter N 5
1.3 raised to the power 5 is: 3.71293 -------
Enter X 5.6
Enter N -3
N must be a positive integer.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
