Your program has to have an year like
1957 to be the input and then output the century of that year.
In: 1946 Out: 20 In: 1705 Out: 18 In: 1900 Out: 19 In: 100 Out: 1 In: 2001 Out 21
because 1946 is in the 20th century.
Keep in mind that 2000 should be 20th century or 1900 should be in 19th century.
Therefore, the first century spans from the year 1 up to and including the year 100, the second - from the year 101 up to and including the year 200, etc.
Any programming language is allowed and keep your code short and sweet. :)
Additional Challenge: Try to also include float values