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


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

scanf("%d%s%f",&s2[i].roll,s2[i].name,&s2[i].marks);

scanf("%d%s%f",&s3[i].roll,s3[i].name,&s3[i].marks);}

for(i=0;i<3;i=i+1)
{ printf("\n%d\t%s\t%f",s1[i].roll,s1[i].name,s1[i].marks);

 printf("\n%d\t%s\t%f",s2[i].roll,s2[i].name,s2[i].marks);

 printf("\n%d\t%s\t%f",s3[i].roll,s3[i].name,s3[i].marks);}}

Embed on website

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