Computer Science, asked by Maruf698, 5 months ago

Write a Python program to input a number print its cube.

Answers

Answered by harshamani2020
0

Answer:

def cube(num):

return num * num * num

num = int(input("Enter an any number : "))

cb = cube(num)

print("Cube of {0} is {1}".format(num, cb))

Output

Enter an any number : 6

Cube of 6 is 216

Answered by valeriy69
0

\small\mathsf\color{pink}{Solution\: using\: python\: 3}

n = int(input("input number: "))

print(f"Cube of {n} is {n ** 3}")

\small\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Similar questions