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

Find the Largest Among Three Numbers Using Python

Final List of Selected Candidates for the post of Office Attendent Lahore High Court 2025

Survey Supervisors - The Urban Unit Jobs 2025

Loopholes in Pakistani Law and Strategies for Improvement

Compare the teacher education reforms in developed and developing countries.

Jazz Summer Internship Program 2025 For All Pakistan Fresh Graduates

Communication & Coordination Officer - The Urban Unit Jobs 2025

Visiting / Teaching Faculty Jobs in University of Veterinary and Animal Sciences Lahore 2025

Explain the interrelationship of language skills. How does the classroom environment affect them?

Write a program to calculate the sum of all elements in a list using a for loop using Python