#include <stdio.h>

int main() {
    int cost = 1200;
    int pay = 10000;

    int money = pay - cost;

    printf("5000원 %d\n", money/5000);
    money = money % 5000;

    printf("1000원 %d\n", money/1000);
    money = money % 1000;

    printf("500원 %d\n", money/500);
    money = money % 500;

    printf("100원 %d\n", money/100);
    money = money % 100;
}

Embed on website

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