Python Program to Find the Largest Among Three Numbers
# Find the Largest Among Three Numbers in Python # defined input a = 7 b = 15 c = 2 # if elif conditions to check the largest of three numbers if (a >= b) and (a >= c): max_num = a elif (b >= a) and (b >= c): max_num = b else: max_num = c # display output to user print("Largest number is: ", max_num)
Output:
Largest number is: 15