Excersize 3
Excersize 3
Output
Total = 435
Average = 87
Percentage = 87.00
/**
* C program to calculate total, average and percentage of five subjects
*/
#include <stdio.h>
int main()
{
float eng, phy, chem, math, comp;
float total, average, percentage;
return 0;
}
OUTPUT
Output
Enter marks of five subjects:
95
76
85
90
89
Total marks = 435.00
Average marks = 87.00
Percentage = 87.00