#include<stdio.h>
#include<conio.h>
void main()
{
int m1,m2,m3;
float average;
clrscr();
printf("Enter marks of First Subject\n");
scanf("%d",m1);
printf("Enter marks of second Subject\n");
scanf("%d",m2);
printf("Enter marks of third Subject\n");
scanf("%d",m3);
average=(m1+m2+m3)/3.0;
if(average>8)
{
printf("Admission Granted");
}
else
{
printf("Not Granted");
}
getch();
}
0 comments:
Post a Comment