Advertisement
Spocoman

02. Greater Number

Dec 10th, 2021
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.31 KB | None | 0 0
  1. first_number = int(input())
  2. second_number = int(input())
  3. if first_number > second_number:
  4.     print(first_number)
  5. else:
  6.     print(second_number)
  7.  
  8.  
  9. Второ решение:
  10.  
  11. first_number = int(input())
  12. second_number = int(input())
  13. print(first_number if first_number > second_number else second_number)
  14.  
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement