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

International Scholarship without IELTS 2025

Palm Reading in Islam : Is It Permissible? A Faith-Centered Guide

Write a program to reverse a list using a loop using Python

Kazakhstan Government Scholarship - How to Apply ? - Complete Detail

How run all .NET Aspire connected Web APIs with correct ports?

Critically discuss Quality and Access as to two problems in higher education. Suggest some ways to address these problems.

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

Create a dictionary with keys as subjects and values as marks. Print marks for a given subject using Python

Rescue 1122 Punjab Jobs 2025 For Multiple Categories

Explain with specific example the relationship of higher education with employment situation in the developing countries.