If the marks obtained by a student in five different subjects are input through the keyboard, find out the aggregate marks and percentage marks obtained by a student. The maximum marks obtained by a student in each subject is 100.

Here are the collection of c programs which you want. All are tested and found no error. If you want c program(software) you can download here. If you also want to add c program here in this list then contact me.

If the marks obtained by a student in five different subjects are input through the keyboard, find out the aggregate marks and percentage marks obtained by a student. Assume that the maximum marks obtained by a student in each subject is 100.

#include “stdio.h”

#include “conio.h”
void main()
{
int m1,m2,m3,m4,m5,aggr;
float per;
clrscr();
printf(“nEnter marks in 5 subject:”);
scanf(“%d%d%d%d%d”,&m1;,&m2;,&m3;,&m4;,&m5;);
aggr=m1+m2+m3+m4+m5;
per=aggr/5;
printf(“nAggregate Marks=%d”,aggr);
printf(“nPercentage Marks=%f”,per);
printf(“nnnnPress any key yo exit….”);
getch();
}

4 COMMENTS