#include main() { int i,s1,s2,s3,s4,s5,s6,total,avg; char name; clrscr(); for (i=1;i<=3 ;i++ ) { printf("\nEnter the name: "); scanf("%s",name); printf("\nEnter the Mark for 6 subjects: "); scanf("%d%d%d%d%d%d",&s1,&s2,&s3,&s4,&s5,&s6); total=s1+s2+s3+s4+s5+s6; avg=total/6; printf("\nAverage is %d",avg); } getch(); }