Menu Close

Calculate the cube root of the user…[Python3]FTC

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
'''

Leave a Reply

Your email address will not be published. Required fields are marked *