csc-python-solutions/9/2 - First, Second, Third.py

6 lines
129 B
Python
Raw Normal View History

2021-02-18 09:03:39 +00:00
x = int(input())
if x == 1: print("1st")
elif x == 2: print("2nd")
elif x == 3: print("3rd")
else: print(str(x) + "th")