csc-python-solutions/9/2 - First, Second, Third.py
2021-02-18 10:03:39 +01:00

6 lines
129 B
Python

x = int(input())
if x == 1: print("1st")
elif x == 2: print("2nd")
elif x == 3: print("3rd")
else: print(str(x) + "th")