top of page
Writer's pictureRajesh Singh

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



1,114 views0 comments

Recent Posts

See All

Comments


bottom of page