Programming Examples

Python program to print the largest number


Program to print the largest number 

Solution

num1=int(input("Enter the first number"))
num2=int(input("Enter the second number"))
num3=int(input("Enter the third number"))
max=num1
if num2>max:
 max=num2
if num3>max:
 max=num3
print("Largest number is:",max)
Output

Enter the first number27

Enter the second number37

Enter the third number17

('Largest number is:', 37)

CCC Online Test 2021 CCC Practice Test Hindi Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Sarkari Naukari Notification Best Website and Software Company in Allahabad Sarkari Exam Quiz