Programming Pandit

c/c++/c#/Javav/Python


Latest Update

Monday, November 23, 2020

Python program to find the maximum of three number using function by G Krishna Chauhan

Source Code

def maximum(a, b, c): 

    if (a >= b) and (a >= c): 

        largest = a 

    elif (b >= a) and (b >= c): 

        largest = b 

    else:

        largest = c 

                    num=maximum(4,6,9)

                    print(num) 

        return largest

 

OUTPUT


9

No comments:

Post a Comment