#include main() { int s1,s2,s3,s4,s5,total; float avg; char name[15]; clrscr(); printf("Enter the name: "); scanf("%s",name); printf("Enter the marks obtained in each subject: "); scanf("%d%d%d%d%d",&s1,&s2,&s3,&s4,&s5); total=s1+s2+s3+s4+s5; avg=total/5; if(avg>=70) printf("Distinction"); else if(avg>=60 && avg<70) printf("First Class"); else if(avg>=50 && avg<60) printf("SecondClass"); else if(avg>=40 && avg<50) printf("Third Class"); else printf("FAIL"); getch(); }