Python program to display the cube of a number upto 4
Answers
Answered by
0
#declare the input variable
inp = int(input("Enter a number: "))
#store the calculation in a variable
Calc = inp ** 3
#print the result
print("The cube of", inp "is", Calc )
Similar questions
English,
3 months ago
Social Sciences,
3 months ago
Science,
7 months ago
Math,
7 months ago
Math,
1 year ago
Social Sciences,
1 year ago
English,
1 year ago