struct marks{ int s1; int s2; int s3; }; struct student{ int roll; char name[30]; struct marks m1; }s5; #include int main() { struct student s5[5]; int i; for(**0;i<5;i++) { printf("\nEnter roll no: "); scanf("%d",&s5[i].roll); printf("\nEnter Student name: "); scanf("%s",s5[i].name); printf("\nEnter Marks of first subject: "); scanf("%d",&s5[i].m1.s1); printf("\nEnter Marks of second subject: "); scanf("%d",&s5[i].m1.s2); printf("\nEnter Marks of third subject: "); scanf("%d",&s5[i].m1.s3); } for(**0;i<5;i++) { printf ("\nStudent name is :%s \nRoll no is :%d \nMarks of first subject is :%d\nMarks of second subject is :%d\nMarks of third subject is :%d",s5[i].name,s5[i].roll,s5[i].m1.s1,s5[i].m1.s2,s5[i].m1.s3); printf("\n"); } return 0; }