Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

max of three numbers in python

# Python program to find the largest
# number among the three numbers
  
def maximum(a, b, c):
  
    if (a >= b) and (a >= c):
        largest = a
  
    elif (b >= a) and (b >= c):
        largest = b
    else:
        largest = c
          
    return largest
  
  
# Driven code 
a = 10
b = 14
c = 12
print(maximum(a, b, c))
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #max #numbers #python
ADD COMMENT
Topic
Name
5+8 =