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

How To Create PAN Card Online

If you want to know  how to create a PAN card online  and  how to get a PAN card at your home  then you are in right place. As the traditional process of getting a PAN card is a hectic process, which involves customers visiting an off-site bank, taking application, filling it and then the submission is another hectic story. So, to prevent this you can apply for a PAN card online . PAN card online free : Permanent Account Number (PAN) is the main card utilized during each banking and monetary exchange. On the off chance that your PAN card has not yet been made and you need another one, then, at that point, this news is significant for you. We tell you how to get a PAN card online free and where to apply. PAN Card is a significant report for monetary or banking-related work as it's viewed as quite possibly the most essential of the document. This is the explanation government is continually making proactive and basic strides so that individuals can undoubtedly get ...

Dahi Handi Celebration in 2021

The much-excited festival of  Dahi Handi  is done per day after  Krishna Janmashtami  or  Gokulashtami . On this day, young men structure a human pyramid to break an earthen pot (or handi) that is loaded up with new margarine or curd and hung at a marginally hard to-arrive at tallness. The game impersonates Lord Krishna's youth demonstrations of taking maakhan. The day is praised all the more prevalently in  Gujarat  and  Maharashtra. Dahi Handi Significance And Dates The Dahi Handi celebration recognizes Lord Krishna's happy lifestyle. As a youngster, Lord Krishna was very devilish and incredibly attached to having spread and curd. With taking a break, his affection for spread and curd expanded and he began taking it in a great manner, even as ladies of the local area hung it high to guard it. In any case, the high Dahi Handis weren't protected from Lord Krishna and his companions, who framed human pyramids to arrive at the pots. This addi...

How To Shop Insurance

Do you want to know how to shop for insurance ? if yes, then this article is for you, as we are going to explain how to shop for insurance , what is the importance of insurance , and how insurance protects you as well as your family. "I am shopping for a new, low-risk insurance policy," a friend of mine said when the topic of car insurance came up recently. "This time I am taking precautions for the children who I don't think will ever be able to drive on their own. My two daughters, who are 13 and 10 years old, are currently quite familiar with how the world works, and car insurance is a fairly common topic for them, but I am nervous about them." "When is the best time to purchase auto insurance ?" I asked him, with the hope of offering some advice. His simple, but and acted upon question has been causing me some wither and stress. I can see him heading towards a climax of panic, and I immediately search for a certain grade of the insurance ...