Please look at the bold bottom example. I got all theexample correct but was stuck with the last few input.
1. write a class called Power with a main method
2. the program asks for two integer numbers: n andm.
m cannot be negative.
3. print the result of raising n to the m power.
Restrictions
do not use any method called pow
Examples:
% java Power
enter an int: 2
enter another int: 0
1
% java Power
enter an int: 2
enter another int: 4
16
% java Power
enter an int: 2
enter another int: 10
1024
% java Power
enter an int: 10
enter another int: 5
100000
% java Power
enter an int: 10
enter another int: 10
10000000000
% java Power
enter an
PayPal Gateway not configured
PayPal Gateway not configured