خرید بک لینک

Vote count: 0

I need to create a program which asks the user to enter two marks, then i have a code which adds them together to find the avarage. So the question is how do I create an if statement that tells the user the minimum I should have get for both of the marks is 30% so even if I've got more then 40% total(which is the minimum marks to pass) I still haven't pass cause i've got less then 30% in one or both of them? Here my code:

    if  (totalMarks >= 40)
    {
        answer = true;
    }
    else
    {
        answer = false;
    }
    retu answer;
}

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 15 فروردين 1395 ساعت: 16:50

صفحه بندی