Question: Write a code to find cube root of a number. If cube root of that number is an integer such as 2 or 3 ,

Write a code to find cube root of a number. If cube root of that number is an integer such as 2 or 3, it will print Cube root of 27(or the number user will provide) is 3(or according to the number provided). If cube root of that number is a fraction (not an integer), it will print Cube root of 20(or the number user will provide) is close to 2.714000000001303(or according to the number provided)

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 Databases Questions!