Write a RECURSIVE method called powerOfTen thatwill find and return 10 n for any integer n (n
Fantastic news! We've Found the answer you've been seeking!
Question:
Examples:
powerOfTen(3) should return 1000.0
powerOfTen(-3) should return 0.001
The method should not print anything.
public static double powerOfTen(int n) {
???
}
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Posted Date: