Write a C program to find the eligibility of admission for a professional course based on the following criteria: Go to the editor Eligibility Criteria: Marks in Maths >=65 and Marks in Phy >=55 and Marks in Chem>=50 and Total in all three subjects >=190 or Total in Maths and Physics >=140 Input the marks obtained in Physics:65 Input the marks obtained in Chemistry:51 Input the marks obtained in Mathematics:72 Total marks of Maths, Physics and Chemistry: 188 Total marks of Maths and Physics.




#include <stdio.h>
void main()
{
    int mpctmp;
    printf("enter a marks of math: ");
    scanf("%d", &m);
    printf("enter a marks of Physics: ");
    scanf("%d", &p);
    printf("enter a marks of Chemistry: ");
    scanf("%d", &c);
    t = m + p + c;
    mp = m + p;
    if (t >= 190)
    {
        printf("you are eligible for the professional course by scoring %d. 
\n welcome."t);
    }
    else if (mp >= 140)
    {
        printf("you are eligible for the professional course by scoring %d. 
\n welcome"mp);
    }
    else
    {
        printf("you are not eligible for a professional course. 
\n Better luck next time.");
    }
}


OUTPUT
enter marks of math: 90
enter marks of Physics: 80
enter marks of Chemistry: 85
you are eligible for the professional course by scoring 255. 
 welcome.
Follow our page for regular updates.

0 Comments