Anjeev Singh Academy

Python Program to accept three integers and print the largest of the three using if only

Python Program: Find the largest/maximum number out of three integers.

##############################
# Language : Python
# Topic: Check given Number is Odd or Even
# Author : Anjeev Singh
#############################

num1 = int(input("Enter a Number 1: "))
num2 = int(input("Enter a Number 1: "))
num3 = int(input("Enter a Number 1: "))

largest = num1

if num2 > largest:
    largest = num2

if num3 > largest:
    largest = num3

print("Largest Number is ", largest)
    

#End of program

Output:

Enter Number 1: 10
Enter Number 2: 25
Enter Number 3: 15

Largest Number is 25


Sorry! You cannot copy content of this page. Please contact, in case you want this content.

Scroll to Top