Determine o século

Crie uma função que receba um ano e retorne o século correspondente.

Exemplos

century(1756) ➞ "18th century"

century(1555) ➞ "16th century"

century(1000) ➞ "10th century"

century(1001) ➞ "11th century"

century(2005) ➞ "21st century"

Notas

  • Todos os anos estarão entre 1000 e 2010.
  • O século 11 vai de 1001 a 1100.
  • O século 18 vai de 1701 a 1800.