Calcule o século
Crie uma função que receba um ano e retorne o século ao qual ele pertence.
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
1000e2010. - O século 11 vai de 1001 a 1100.
- O século 18 abrange o período 1701-1800.