Description
n1 = int(input("Enter the First Number : "))
n2 = int(input("Enter the Second Number : "))
n3 = int(input("Enter the Third Number : "))
if n1 > n2:
if n1 > n3:
print("The Greatest number is : ", n1)
else:
print("The Greastest number is : ", n3)
elif n2 > n1:
if n2 > n3:
print("The Greatest number is : ", n2)
else:
print("The Greatest number is : ", n3)
else:
print("The Greatest number is : ", n3)
'''
#Output:
Enter the First Number : 44
Enter the Second Number : 56
Enter the Third Number : 32
The Greatest number is : 56
'''
Output:
Enter the First Number : 44
Enter the Second Number : 56
Enter the Third Number : 32
The Greatest number is : 56
Recommended Posts
Calculate the area of circle in Python Programming
In this tutorial, we will learn all about the circle ( area, circumference ) with all types of method. Inbuild Methods, function, simple so on.
leap year in python
The year which has 366 days is called a leap year. This additional day is added in february which makes it 29 days long.
Fibonacci Series | Fibonacci Sequence in Python
Fibonacci numbers ( series ) is a set of numbers that start with 1 or 0 followed by a 1 proceeds on the rule that each number.
Find maximum of two number in python programming language
Maximum of two number in Python - Using max() function , Using if else statement, Using Ternary operator and Using Lambda function.