#include <stdio.h>
#include <string.h>
struct Student 
{
    char name[50];
    int rollNumber;
    float marks;
};
int main() {
    printf("enter the info of 10 students\n");
     struct Student students[10];
     for (int i = 0; i < 10; i++)
        {
       scanf("%s", students[i].name);
       scanf("%d", &students[i].rollNumber);
       scanf("%f", &students[i].marks);
        }
        printf("Displaying information for each student:\n");
    for (int i = 0; i < 10; i++) {
        printf("Student %d:\n", i+1);
        printf("Name: %s\n", students[i].name);
        printf("Roll Number: %d\n", students[i].rollNumber);
        printf("Marks: %.2f\n", students[i].marks);
        printf("\n");
    }

    return 0;
}

Embed on website

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