행복한 프로그래밍

mozart family

영웅*^%&$ 2018. 2. 26. 21:35
728x90

#include <stdio.h>
#include <string.h>

#define KIDS 3
#define FAMILY "The Peytons"
#define MORTGAGE_RATE 5.15

main()
{
    int age;
    char childname[14] = "Thomas";

    printf("\n%s는 %d명의 아이를 가지고 있다. \n", FAMILY, KIDS);

    age = 11;
    printf("첫 번째 아이 %s는 %d살입니다.\n", childname, age);

    strcpy(childename, "Christopher");
    age = 6;
    printf("두 번째 아이 %s는 %d살입니다.\n", childename, age);

    strcpy(childename, "Benjamin");
    age = 3;
    printf("세 번째 아이 %s는 %d살입니다. \n", childename, age);

    return 0;
}

728x90

'행복한 프로그래밍' 카테고리의 다른 글

DataBase select 가장 기초되는 구문들 (scott의 경우)  (0) 2018.03.28
id passport   (0) 2018.02.26
grade   (0) 2018.02.26
value algorithm   (0) 2018.02.26
signal   (0) 2018.02.26