#include <stdio.h>

int main(void) {
    int x;
    int h;
    int t;
    int o;

    printf("천 이하의 정수를 입력하시오 : \n");
    scanf("%d", &x);
    printf("입력한 정수는 %d입니다.\n", x);

    h = x/100;
    t = (x/10)%10;
    o = x%10;
    printf("백의 자리 : %d\n십의 자리 : %d\n일의 자리 : %d", h, t, o);
    
    return 0;
}

Embed on website

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