Discussions Events Study Material Jobs
Find the Largest Among Three Numbers Using Python - Uniwaly

Explore Diverse Conversations

Find the Largest Among Three Numbers Using Python

Posted By: UmairMehmood Published On: 13 June 2025 At: 13:14 PM

Input three numbers and find the largest one using if, elif, and else.
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
num3 = float(input("Enter third number: "))

if num1 >= num2 and num1 >= num3:
    print("The largest number is:", num1)
elif num2 >= num1 and num2 >= num3:
    print("The largest number is:", num2)
else:
    print("The largest number is:", num3)


Tags:

python find largest number python code
Login to like

Posted By:

Author Profile

UmairMehmood

11 days ago

Join the conversation!

Login to Comment

Discover More Articles

Bank Alfalah Management Trainee Program and Summer Internship Program 2025

Jazz Summer Internship Program 2025 For All Pakistan Fresh Graduates

Simple Number Guessing Game Using Python

Air University Main Campus - How to Apply

Input 5 numbers from the user and store them in a list. Then print the list Using Python

What is a NullPointerException, and how do I fix it?

Child Protection and Welfare Bureau Jobs 2025

BPS 5 and BPS 16 Supreme Court of Pakistan Job Vacancies 2025

Print All Even Numbers in a List using while loop in Python

Why Google stopped showing the card of summary of your site's performance on Google Search ?