Quick actions

cmd+k|ctrl+k

Navigation

Languages

scanf

Snippet info

Language

C

Visibility

public

Author

jiseong

Created

2020-04-19T06:28:10Z

Updated

2020-04-19T06:28:10Z

#include <stdio.h>
int main(void)

{
    /*int input;
    printf("값을 입력하세요 : ");
    scanf_s("%d", &input);
    printf("입력값은 : %d\n", input);*/

    int one, two, three;
    printf("3개의 정수를 입력하세요 : ");
    scanf("%d %d %d", &one, &two, &three);
    printf("첫번째 숫자는 : %d\n", one);
    printf("두번째 숫자는 : %d\n", two);
    printf("세번째 숫자는 : %d\n", three);
    return 0;

}
INFO