Feed Headline Animator

Write a program to calculate the division obtained by the student (Block of Statements).

Main()
{
int m1,m2,m3,m4,m5,per;
print(“Enter marks in five subjects”);
scanf(“%d %d %d %d %d”,&m1,&m2,&m3,&m4,&m5);
per=(m1+m2+m3+m4+m5)/5;
if(per>= 60)
printf(“First division”);
else
{
if ( per>=50)
printf(“Second division”);
else
{
if ( per >=40)
printf(“Third division”);
else
printf(“Fail”);
}
}
}

Posted by: Wasim Javed

No comments:

Post a Comment