Here you will get python program to find largest number among three numbers.
The program will ask user to input three numbers and then print greatest among them.
1 2 3 4 5 6 7 8 9 10 11 12 |
print("enter three numbers:") a = int(input()) b = int(input()) c = int(input()) if a>b and a>c: print(a, " is largest") elif b>a and b>c: print(b, " is largest") else: print(c, " is largest") |
Output
enter three numbers:
12
7
9
12 is largest