#include <stdio.h>

typedef struct{
    int grade;
    char name[20];
} Student;

int main() {
    Student std[4] = {{1, "손흥민"},{2,"김민재"},{3,"이강인"},{4,"오현규"}};

    for (int i = 0;i < 4;i++) {
        printf("%s은 %d학년입니다\n",std[i].name,std[i].grade);
    }
    return 0;
}

Embed on website

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