#include <stdio.h>
struct school {
int class;
struct student {
int roll;
char name[20];
float marks;
}s1[3],s2[3],s3[3];
} s[8];


void main()
{ int i,j;
for(i=0;i<8;i=i+1)
{ for(j=0;j<3;j=j+1)
{ scanf("%d%s%f",&s[i].s1[j].roll,s[i].s1[j].name,&s[i].s1[j].marks);}}
} 

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: