Skip to main content

Welcome to Coding 4 Programming

Addition of Two Binary Numbers | Function | Python

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.

  1. def greatest():
  2.     if n1>n2:
  3.         if n1>n3:
  4.             print("Greatest Number is",n1)
  5.         else:
  6.             print("Greatest Number is",n3)
  7.     else:
  8.         if n2>n3:
  9.             print("Greatest Number is",n2)
  10.         else:
  11.             print("Greatest Number is",n3)
  12. n1=int(input("Enter First Number="))
  13. n2=int(input("Enter Second Number="))
  14. n3=int(input("Enter Third Number="))
  15. greatest()

Screenshot with Outputs. 

Greatest Number
Greatest Number in Python


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.


Comments

Popular Posts