Feed Headline Animator

Find out the aggregate marks and percentage marks obtained by the student. Assume that the maximum marks that con be obtained in each subject is 100.

Main( )
{
int m1,m2,m3,m4,m5, sum;
float agg,per;
printf(“/n Enter the marks of five subjects”);
scanf(“% d % d % d %d % d “,&m1,&m2,&m3,&m4,&m5);
sum=m1+m2+m3+m4+m5;
agg=sum/5.0;
per=sum*100.0/500.0;
printf(“/n percentage =%f”,per);
}


Posted by: Wasim Javed

No comments:

Post a Comment