#include<stdio.h>
struct students{
char name[50];
int rollno;
char native[50];
char class[50];
};
int main(){
struct students s[10];
int i;
printf("\nenter your name: ");
scanf("%s",s[i].name);
printf("\nenter your rollno: ");
scanf("%d",&s[i].rollno);
printf("\nenter your native place: ");
scanf("%s",s[i].native);
printf("\nenter your class: ");
scanf("%s",s[i].class);
for (i=0;i<10;i++){
printf("\nname: %s",s[i].name);
printf("\nrollno: %d",s[i].rollno);
printf("\nnative: %s",s[i].native);
printf("\nclass: %s",s[i].class);
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: