Q-8.Write a C program to input marks of five subjects of a student and calculate total, average and percentage of all subjects. How to calculate total, average and percentage in C programming. Logic to find total, average and percentage in C program.
Author -
admin
July 06, 2019
0
/**
* 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;
/* Input marks of all five subjects */
printf("Enter marks of five subjects: \n");