Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Let x be number 1
- # Let y be number 2
- # Let z be number 3
- x = int(input('The value of x is: ',))
- y = int(input('The value of y is: ',))
- z = int(input('The value of z is: ',))
- if x > y:
- if x > z:
- print('The greatest number is: ',x)
- else:
- print('The greatest number is: ',z)
- elif y > z:
- if y > x:
- print('The greatest number is: ',y)
- else:
- print('The greatest number is: ',x)
- else:
- print('The greatest number is: ',y)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement