Course Solutions Uncategorized (Solved) : Please Look Bold Bottom Example Got Example Correct Stuck Last Input 1 Write Class Called Q37018015 . . . .

(Solved) : Please Look Bold Bottom Example Got Example Correct Stuck Last Input 1 Write Class Called Q37018015 . . . .

 

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

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post