Given base and n that are both 1 or more, write a program called Power that will compute recursively (no loops) the valu

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Given base and n that are both 1 or more, write a program called Power that will compute recursively (no loops) the valu

Post by answerhappygod »

Given base and n that
are both 1 or more, write a program called Power that will compute
recursively (no loops) the value of base to the n power, so
power (3, 2) is 9 (3 squared). Use the Scanner method to get the
base and the exponent from the user.
Example output: 3^2 = 9
Java
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply