Advertisement
facedwarrior193

Greatest num finder

Feb 26th, 2022 (edited)
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. a = int(input("Enter first number"))
  2. b = int(input("Enter second number"))
  3. c = int(input("Enter third number"))
  4. def funct(a,b,c):
  5.     if a>b and a>c:
  6.         return a
  7.     if b>a and b>c:
  8.         return b
  9.     if c>b and c>a:
  10.         return c
  11. print(funct(a,b,c),"Is the greatest number")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement