Advertisement
ALENTL

tp11 answer 4

Sep 14th, 2021
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. # Let x be number 1
  2. # Let y be number 2
  3. # Let z be number 3
  4.  
  5. x = int(input('The value of x is: ',))
  6. y = int(input('The value of y is: ',))
  7. z = int(input('The value of z is: ',))
  8.  
  9. if x > y:
  10. if x > z:
  11. print('The greatest number is: ',x)
  12. else:
  13. print('The greatest number is: ',z)
  14.  
  15. elif y > z:
  16. if y > x:
  17. print('The greatest number is: ',y)
  18. else:
  19. print('The greatest number is: ',x)
  20.  
  21. else:
  22. print('The greatest number is: ',y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement