Write a Program to calculate or find aggregate marks and percentage of a student in 5 subject

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 Replies to “Write a Program to calculate or find aggregate marks and percentage of a student in 5 subject”

  1. the program you posted has many mistakes like semicolon mistakes,include conio and stdio,brackets mistakes
    first execute the program personally and the post it

Leave a Reply