-
Notifications
You must be signed in to change notification settings - Fork 16
/
5.c
34 lines (26 loc) · 795 Bytes
/
5.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#include <stdio.h>
int main()
{
int math, physics, chemistry, total, mathPhy;
printf("Enter Student Marks in Mathematics: ");
scanf("%d", &math);
printf("Enter Student Marks in Physics: ");
scanf("%d", &physics);
printf("Enter Student Marks in Chemistry: ");
scanf("%d", &chemistry);
total = math + physics + chemistry;
mathPhy = math + physics;
if (math >= 60 && physics >= 50 && chemistry >= 40 && total >= 200)
{
printf("Candidate is Approved for Professional Course\n");
}
else if (mathPhy >= 150)
{
printf("Candidate is Approved for Professional Course\n");
}
else
{
printf("Candidate is Not Approved for Professional Course\n");
}
return 0;
}