#include<stdio.h>
void main()
{
//ProgramWithHarsh//
float eng,hindi,maths,phy,chem,percent;
printf("\nEnter engish marks: ");
scanf("%f",&eng);
printf("\nEnter hindi marks: ");
scanf("%f",&hindi);
printf("\nEnter maths marks: ");
scanf("%f",&maths);
printf("\nEnter physics marks: ");
scanf("%f",&phy);
printf("\nEnter chemistry marks: ");
scanf("%f",&chem);
percent=(eng+hindi+maths+phy+chem)*100/500;
printf("\nPercentage=%f",percent);
if(percent>=60)
printf("\nFirst division");
else if(percent>=50)
printf("\nSecond division");
else if(percent>=40)
printf("\nThird division");
else
printf("\nFail");
}