<reponame>1van101/SoftUni-Software-Engineering<filename>JS_basics/02-Conditional-Statements-Ex/02-Bonus-Score.js<gh_stars>0function bonusScore(input){
    let num = Number(input[0]);
    let bonus = 0;

    if (num <= 100){
        bonus += 5;
    }else if (num <= 1000){
        bonus += num * 0.2;
    }else{
        bonus += num * 0.1;
    }
    
    if (num % 2 == 0){
        bonus += 1;
    }

    if (num % 10 == 5){
        bonus += 2;
    }

    console.log(bonus + '\n' + (num + bonus));
}

bonusScore(["2703"])