[solved]-Given Input Value N Find 3 N Three Power N Must Use Loop E Don T Use Mathpow Want Full Cr Q39079252
For a given input value N, find 3^N (Three to the power of N) .You must use a loop! ^_^ (i.e. Don’t use Math.pow() if you wantfull credit in test) getThreeToThePowerOf(0) → 1getThreeToThePowerOf(1) → 3 getThreeToThePowerOf(3) → 27
getThreeToThePowerOf(0) → 1
getThreeToThePowerOf(1) → 3
getThreeToThePowerOf(2) → 9
public int getThreeToThePowerOf(int N) {
}
Expert Answer
Answer to For a given input value N, find 3^N (Three to the power of N) . You must use a loop! ^_^ (i.e. Don’t use Math.pow() if … . . .
OR

