Computer Science, asked by kevaldhol, 1 year ago

write a c program to calculate average and total of 5 students for 3 subject (use nested for loops )​

Answers

Answered by empathictruro
11

#include<stdio.h>

#include<conio.h>

main()

{

clrscr();

int a[10],b[5],i,j,c[10];

for(int i=0;i<5;i++)

{

for(int j=0;j<3;j++)

{

printf("Enter the mark");

scanf("%d",&b[j]);

c=c+b[j];

}

printf("student"%d, i);

printf("the average of the student", %d , c);

}

}

Similar questions