Python Program for Cube of a Number using Functions

Updated: Nov 10, 2020


Program:


def cube(a):

print("The Cube of given number", a*a*a)

b = int(input(" Enter any number : "))

cube(b)


Output:

Please Enter any numeric Value : 5 The Cube of a Given Number 5 = 125



336 views0 comments

Recent Posts

See All
 

9555593818

Thakurdwara, Uttar Pradesh 244601, India

  • Facebook
  • Twitter
  • LinkedIn