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

Friday, December 9, 2016

Codefights arithmeticExpression


//sample solution
function arithmeticExpression(A, B, C) {
    if(A+B==C){
        return true;
    } else if(A-B==C){
        return true;
    } else if(A*B==C){
        return true;
    } else if(A/B==C){
        return true;
    } else {
        return false;
    }
}

No comments:

Post a Comment


This is an example of scrolling text using Javascript.

Popular Posts