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 the student. Assume that the maximum marks that can be obtained by a student in each subject is 100.
/* Calculation of aggregate and percentage marks */
int m1, m2, m3, m4, m5, aggr;
printf(“\n Enter marks in 5 subjects:”);
scanf(“%d %d %d %d %d”, &m1, &m2, &m3, &m4, &m5);
printf(“\n Aggregate Marks=%d”,aggr);
printf(“\n Percentage Marks=%d”,per);
printf(“\n\n\n\n\n Press any key to exit….”);
Please run this program and share the output with us.
For any query or issue, feel free to discuss on http://discuss.eduguru.in