1# Python program to find the largest number among the three input numbers
2# take three numbers from user
3num1 = float(input("Enter first number: "))
4num2 = float(input("Enter second number: "))
5num3 = float(input("Enter third number: "))
6
7if (num1 > num2) and (num1 > num3):
8 largest = num1
9elif (num2 > num1) and (num2 > num3):
10 largest = num2
11else:
12 largest = num3
13
14print("The largest number is",largest)
15
1##Write a Python program to input 3 numbers and find the largest.
2##Print all the numbers, and the largest among them, with appropriate titles.
3
4n1=float(input("Enter number 1: "))
5n2=float(input("Enter number 2: "))
6n3=float(input("Enter number 3: "))
7if n1 > n2 :
8 if n1 > n3 :
9 LNo=n1
10 else :
11 LNo=n3
12else :
13 if n2 >n3 :
14 LNo=n2
15 else :
16 LNo=n3
17print("DISPLAY........")
18print("Number 1 : ",n1)
19print("Number 2 : ",n2)
20print("Number 3 : ",n3)
21print("Largest number is : ",LNo)
22