#include <stdio.h>
struct student_record {
char student_name[50];
char branch[50];
float total_marks;
};
int main() {
struct student_record p1;
printf("Enter 10 student records\n");
for (int i = 0; i < 10; i++) {
printf("Player no. %d details\n", i + 1);
printf("Enter student name: ");
scanf("%s", p1.student_name);
printf("Enter branch name: ");
scanf("%s", p1.branch);
printf("Enter total marks: ");
scanf("%f", &p1.total_marks);
}
printf("All student information\n");
for (int i = 0; i < 10; i++) {
printf("Student final info\n");
printf("Student name: %s\t", p1.student_name);
printf("Branch name: %s\t", p1.branch);
printf("Total marks: %f\t", p1.total_marks);
}
return 0;
}