[solved]-Given Input Value N Find 3 N Three Power N Must Use Loop E Don T Use Mathpow Want Full Cr Q39079430
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
Please keep it short
Here’s the coding bat link(https://codingbat.com/prob/p269627)
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

