Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = int(input("Enter first number"))
- b = int(input("Enter second number"))
- c = int(input("Enter third number"))
- def funct(a,b,c):
- if a>b and a>c:
- return a
- if b>a and b>c:
- return b
- if c>b and c>a:
- return c
- print(funct(a,b,c),"Is the greatest number")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement