Menu Close

Print Cube root of the given number

Calculate the cube root of the user input by using python program.Input: Get the integer number as input. Output: Print the cube root of the input number. Refer the following sample input and the output.

Num=int(input("Enter a Number : "))

root=round(Num**(1/3))# Operator ** is equal to ^, X^n. Example: 2^2=4, 2^3=8.

print(root)



'''
Input:
	27

Output:
	3
'''

Output:
Enter a Number : 27
3

Output:
Enter a Number : 216
6

Output:
Enter a Number : 343
7

Output:
Enter a Number : 8
2

Output:
Enter a Number : 729
9

Output:
Enter a Number : 1000
10

Scrshot:



More Codes to Fcuk