#include<stdio.h>
#include<conio.h>
void main()
{
int maths,chem,physics;
clrscr();
printf("Enter the marks of mathamatics :: ");
scanf("%d",&maths);
printf("Enter the marks of chemistry :: ");
scanf("%d",&chem);
printf("Enter the marks of physics :: ");
scanf("%d",&physics);
if(maths >= 60 && chem >= 40 && physics >=50 && (maths + chem + physics >=200) || (maths + physics >= 150) )
printf("\nThe Candidate Is Eligible ");
else
printf("\nThe Candidate Is Not Eligible ");
getch();
}
/*
********
OUTPUT
********
Enter the marks of mathamatics :: 77
Enter the marks of chemistry :: 88
Enter the marks of physics :: 33
The Candidate Is Not Eligible
*/