이름과 전화번호, 주소를 멤버로하는 구조체를 정의하여 1개의 자료를 입력받고 출력하는 프로그램을 작성하시오.
각각의 길이는 100자 이하다.
#include <stdio.h>
#include <stdlib.h>
struct person 
{
    char name[10];
    char phone[100];
    char address[100];
};
int main(void)
{
    struct person a;
    printf("이름과 전화번호, 주소를 입력하시오.\n");
    scanf("%s %s %s",a.name,a.phone,a.address);
    printf("이름 : %s\n",a.name);
    printf("전화번호 : %s\n",a.phone);
    printf("주소 : %s\n",a.address);
     
    system("pause");
    return 0;
}
