#include <stdio.h>
#include <math.h>
    
struct employee
{
    char name[20];
    char num[20];
    int p;
};
    
int main(void)
{
    struct employee arr[3];
    int i;
    
    for(i=0; i<3; i++)
    {
        printf("정보 입력: ");
        scanf("%s %s %d", arr[i].name, arr[i].num, &arr[i].p);
    }
    for(i=0; i<3; i++)
    {
        printf("\n 종업원 이름: %s \n 주민등록 번호: %s \n 급여 정보: %d \n", arr[i].name, arr[i].num, arr[i].p);
    }
    
    return 0;
}

Embed on website

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