Search This Blog
Available Codings for Programming of C, C++, PYTHON, JAVA and HTML.
Welcome to Coding 4 Programming
- Get link
- X
- Other Apps
Labels
To Find Greatest Number | Function | Python
Python Program to find the Greatest Number out of three Numbers entered by the users through user defined Function.
- Coding for Required Program.
- def greatest():
- if n1>n2:
- if n1>n3:
- print("Greatest Number is",n1)
- else:
- print("Greatest Number is",n3)
- else:
- if n2>n3:
- print("Greatest Number is",n2)
- else:
- print("Greatest Number is",n3)
- n1=int(input("Enter First Number="))
- n2=int(input("Enter Second Number="))
- n3=int(input("Enter Third Number="))
- greatest()
Screenshot with Outputs.
Note:
- If you have any problem related to this program. Please do comment your Problem or Mail us.
- For illustrating the any concept you can comment by line number.
- Thank you! For more programs do regular visit to Coding 4 Programming.
- Get link
- X
- Other Apps
Labels:
Python
Popular Posts
To Check Prime Number | For Loop | Python
- Get link
- X
- Other Apps
To Check Perfect Number | Function | For Loop | Python
- Get link
- X
- Other Apps
Comments
Post a Comment