Write a program to receive marks of physics, chemistry & maths from user & check its eligibility for course if
#include<stdio.h>
#include<conio.h>
int main()
{
int p,c,m,total,PM;
printf("Enter the marks of the physics chemistry and math: ");
scanf("%d%d%d",&p,&c,&m);
total=(p+c+m);
PM=p+m;
if((p>40 && c>50) && (m>60 && (PM>150||total>200)))
{
printf("You are eligible");
}
else
printf("You are Not eligible");
getch();
return 0;
}
Enter the marks of the physics chemistry and math: 45
55
65
You are Not eligible
--------------------------------
Process exited after 7.528 seconds with return value 0
Press any key to continue . . .