csc-python-solutions/09/2 - First, Second, Third.py
2021-02-18 17:49:56 +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")