Write a user defined function in python to find cube of a given number by passing argument and no return value.
Answers
Answered by
5
Answer:
def cube(a):
b=a* *3
print("Cube of",a,"=",b)
num=int(input("Enter your number:-"))
cube(num)
Enter your number:-2
Cube of 2 = 8
✨
Attachments:
Answered by
4
Answer:
def cube(a):
b=a* *3
print("Cube of",a,"=",b)
num=int(input("Enter your number:-"))
cube
O U T P U T
Enter your number:-2
Cube of 2 = 8
Hope it will help you.
Similar questions
Math,
1 month ago
English,
1 month ago
Social Sciences,
3 months ago
Hindi,
3 months ago
Math,
10 months ago