Today we are going the write one of the simplest program in Python to find largest among three numbers.
Here, we will input three numbers and our program will find the largest of them all.
Program to find largest among three numbers in Python:
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: 9 2 12 12 is largest
That’s our quick program, need help then comment below.