Question: Write a function called myRoot, that accepts two parameters, a number and the root of that number you desire as a return value ( Use

Write a function called myRoot, that accepts two parameters, a number and the root of that number you desire as a return value (Use integers, you can avoid negatives and fractions). For example:
To get the cube root of 512(its 8) I would call - root(512,3)
For the 4th root of 16(2), root(16,4), etc.
Using this function tell me what the 12th root of 12,345 is in a comment at the base of the code.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!