Quotes help make search much faster. Example: "Practice Makes Perfect"

Monday, May 1, 2017

Codefights Sample Solution for centuryFromYear


function centuryFromYear(year) {
    a = year/100;
    b = parseInt(a);
    c = a % 1;
    if(c>0){
        return b+1;
    } else {
        return b;
    }
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts