Advertisement
BadMonkey_Dev

largest odd example.py

Nov 17th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.65 KB | None | 0 0
  1.  
  2. x = int(input('\nEnter an Odd number only for X: '))
  3. y = int(input('\nEnter an Odd number only for Y: '))
  4. z = int(input('\nEnter an Odd number only for Z: '))
  5.  
  6.  
  7. if x % 3 == 0:
  8.     print ('\nOdd: X =', x)
  9. elif y % 3 == 0:
  10.     print ('\nOdd: Y =', y)
  11. elif z % 3 == 0:
  12.     print ('\nOdd: Z =', z)
  13. else:
  14.     print ('\nThere are No Odd numbers, Just Even')
  15.  
  16.  
  17.              
  18. if x > y or x > z:
  19.     print ('\nX =', x,'is the greater than Y =', y, 'and Z =', z)
  20. elif y > x or y > z:
  21.     print ('\nY =', y,'is greater than X =', x, 'and Z =', z)
  22. elif z > x or z > y:
  23.     print ('\nZ =', z, 'is greater than X =', x, 'and Y =', y)
  24. else:
  25.     print ()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement