Advertisement
Arcot

ch3 ex2

Oct 23rd, 2022
932
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. messi=int(input("Enter number of goals by Messi"))
  2. ronaldo=int(input("Enter number of goals by Ronaldo"))
  3. neymar=int(input("Enter number of goals by Neymar"))
  4.  
  5. if messi>ronaldo and messi>neymar:
  6.   print("Messi scored most goals")
  7. elif ronaldo>messi and ronaldo>neymar:
  8.   print("Ronaldo scored most goals")
  9. elif neymar>messi and neymar>ronaldo:
  10.   print("Neymar scored most goals")
  11. else:
  12.   print("No clear winner")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement