Write a program to calculate the division obtained by the student.

#include<stdio.h>
main()
{

int m1, m2, m3, m4, m5, per;

printf("Enter the marks obtained 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");
}


The file can be found at:
Download File








No comments:

Post a Comment

kiss on google ads if you are anonymous because your ip is trackable.thank you.

......from.admin