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