Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
For year = 1905, the output should be centuryFromYear(year) = 20;
DanR
Programming language:
Whatever
2021-03-31 17:34:37
0
Q:
For year = 1905, the output should be centuryFromYear(year) = 20;
Aoeuid
Code:
Whatever
2021-08-11 13:47:06
1 2 3 function centuryFromYear(year) { return Math.floor(year/100) + ((year%100) ? 1 : 0) }
0
Related
Given a month - an integer from 1 to 12, print the number of days in it in the year 2017.
october 26 2018 till today number of weeks
current year bash
what day is the 17th april 2021
latex month year date
new year's day
where do you see yourself in 5 years
What modern dance company was founded by the co-director of the musical that premiered January 5, 1964, at New York City's Sanctuary Theatre? 592 points
fullcalendar display 12 months without dates
New to Communities?
Join the community