We’re rewarding the question askers & reputations are being recalculated! Read more.

 Tweeted twitter.com/StackCodeGolf/status/1023448175343034369 occurred Jul 29 '18 at 6:00 4 Fixed one of the test cases edited Jul 23 '18 at 15:44 Beta Decay 21.1k66 gold badges6060 silver badges152152 bronze badges Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20 In: 1705 Out: 18 In: 1900 Out: 19 In: 100 Out: 1 In: 2001 Out 2021  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 Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20 In: 1705 Out: 18 In: 1900 Out: 19 In: 100 Out: 1 In: 2001 Out 20  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 Your program has to have an year like 1957 to be the input and then output the century of that year. For example: 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 3 added 163 characters in body edited Jul 23 '18 at 15:10 Agile_Eagle 66322 silver badges1515 bronze badges Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20 In: 1705 Out: 18 In: 1900 Out: 19 In: 100 Out: 1 In: 2001 Out 20  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 Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20  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. :) Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20 In: 1705 Out: 18 In: 1900 Out: 19 In: 100 Out: 1 In: 2001 Out 20  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 2 added 163 characters in body edited Jul 23 '18 at 15:09 Agile_Eagle 66322 silver badges1515 bronze badges Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20  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. :) Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20  because 1946 is in the 20th century. Keep in mind that 2000 should be 20th century or 1900 should be in 19th century. Any programming language is allowed and keep your code short and sweet. :) Your program has to have an year like 1957 to be the input and then output the century of that year. For example: In: 1946 Out: 20  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. :) 1 asked Jul 23 '18 at 15:05 Agile_Eagle 66322 silver badges1515 bronze badges