#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");
if((percent>=50)&&(percent<60))
printf("\nSecond division");
if((percent>=40)&&(percent<50))
printf("\nThird division");
if(percent<40)
printf("\nFail");
}
The output will be