c++ program that inputs marks of three subjects.








 #include <iostream>

using namespace std;


int main() {

    int a, b, c, avg;


    cout << "Enter marks for Subject 1: ";   cin >> a;

    cout << "Enter marks for Subject 2: ";   cin >> b;

    cout << "Enter marks for Subject 3: ";   cin >> c;


    avg = (a + b + c) / 3;


    if (avg > 80)

        cout << "\nYou are above standard!\n\nAdmission granted!\n\n";

    if (avg < 80)

        cout << "\nFAil ho gya Bachya \n\nPutar thoraq parh lena si\n\n";


    return 0;

}


Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.

#buttons=(Accept !) #days=(20)

Our website uses cookies to enhance your experience. Learn More
Accept !