Answer:
year = int(input("Enter a year: "))
if year >= 2101:
print("Distant future")
elif year >= 2001:
print("21st century")
elif year >= 1901:
print("20th century")
else:
print("Long ago")
Step-by-step explanation:
*The code is in Python.
Ask the user to enter a year
Use if-else statement to check the year and print the appropriate message given for each condition. If year is greater than or equal to 2101, print "Distant future". If year is greater than or equal to 2001, print "21st century". If year is greater than or equal to 1901, print "20th century". Otherwise, print "Long ago".