Skip to main content

Python Program To Find The Maximum Among Three Given Numbers.

If you want python program to find the maximum among three given numbers then you are at right place. As python is the future of the technology, we all want to become a master in this programming language. Let’s start with the basic.

Python Program To Find The Maximum Among Three Given Numbers.


Here we are going to tell how you can write a simple program which finds the maximum among three numbers. We will have three number (assume that the three numbers are always different) and our goal is to find out the maximum number among those three numbers.

 

Example:

Input:

a, b, c, = 1, 9, 3

 

Output:

9

 

Input:

a, b, c, = 25, 96, 300

 

Output:

300

 

Task:

For given Pseudo-Code Magnets arrange it in correct order and complete

 

Pseudo-Code Magnets:

input Number1, Number2, Number3

if (Number1 > Number3) then

display "Num1 is the largest"

if (Number1 >Number2) then

end-if

else if (Number2 < Number3) then

display "Num2 is the largest"

else

else

display "Num3 is the largest"

display "Num3 is the largest"

end-if

 

Code:

# To find maximum no. amoung three nos.

num1 = int(input("Enter the first number: "))
num2 = int(input("Enter the second number: "))
num3 = int(input("Enter the third number: "))

if(num1>num2):
    if(num1>num3):
        print(f"{num1} is largest")
    else:
        print(f"{num3} is largest")

elif(num2<num3):
    print(f"{num3} is largest")

else:
    print(f"{num2} is largest")


Output:

Python Program To Find The Maximum Among Three Given Numbers.

 

Note: If you have any doubt regarding the program, you can mention them in the comment section.

 

Comments

Popular posts from this blog

Binary Trading

We let you know why we use data representation in binary trading and discuss three main ways that we can generate a binary dataset for binary trading. Simultaneously we will also discuss  the characteristics of natural  binary trading  algorithms and  talk about the characteristics of our AI algorithms. If we stop using symbols to represent binary data then we are pretty much to the fundamental character. What exactly constitutes binary data such as the capital salary of a guy which goes through our database because it contains this name or his place of birth? Does a response method in the UDF for answering these questions look like “not so much”? Well, that was because for us to answer questions like that then we would think differently of our data and related them to the characters of symbols but even then, we never needed data representation at first. So, what exactly is a binary dividend? It refers to two statements. Input: V. It's fundamental. We needed thi...

Mesothelioma Lawyers

Do you want to know about Mesothelioma lawyers ? if yes, then you are in right place, as we are going to explain all the related points to mesothelioma lawyers and how high of a risk is mesothelioma. In this article, we’ll go over the food for thought of the WELP short-story anthology (NYMF 2013). And in addition, this is the very first book on the special source material that explores the aspect of mesothelioma being in an unguarded context. The Agent Cordoning way of radiotherapy is a successful procedure in the treatment of certain types of lung cancer. It has been proven to have enormous effects, and its hazards (nosebleeds, smoke inhalation, etc.) have become known by doctors but are still very new for many physicians. This is one of the primary reasons why it was postponed taking into account the ongoing re-classification (in line with rules on the reclassification of cancer types). The agent cordoning way has a few distinctive effects. Among them, it’s less complex than ...

KGF Chapter 2 Movie Release Date in India

The blood-drenched place which is known for  Kolar Gold Fields (KGF)   Has another master now. Rough, whose name strikes dread in the core of his enemies. His partners admire Rocky as their Saviour, the public authority considers him to be a danger to peace and lawfulness; enemies are clamoring for retribution and scheming for his defeat. More crimson fights and obscure days anticipate as Rocky progresses forward his journey for unchallenged matchless quality. KGF Chapter 2 , perhaps the most expected movie that has been slowed down for some time presently, at last, has a delivery date. The producers announced on Sunday, August 22 that the film will deliver on  April 14, 2022 (KGF Chapter 2 Full Movie Release Date in India) . While the film was before expected to deliver at some point this year, fans will presently need to stand by an additional half-year to watch the film in theatres. Declaring the delivery date, the lead star of the KGF duology Yash stated, "The s...