def centuryFromYear(year) #solution requires us find out if the century has a remainder of 0 or not. #we can remove the remainder from the year to get a clean number since centuries happen in multiples of 100 if (year % 100) == 0 year/100 else (year - (year % 100))/100 + 1 end end