#include #include char znak[11][7][6] = { { "+---+", "| |", "| |", "+ +", "| |", "| |", "+---+" } ,{ " +", " |", " |", " +", " |", " |", " +" } ,{ "+---+", " |", " |", "+---+", "| ", "| ", "+---+" } ,{ "+---+", " |", " |", "+---+", " |", " |", "+---+" } ,{ "+ +", "| |", "| |", "+---+", " |", " |", " +" } ,{ "+---+", "| ", "| ", "+---+", " |", " |", "+---+" } ,{ "+---+", "| ", "| ", "+---+", "| |", "| |", "+---+" } ,{ "+---+", " |", " |", " +", " |", " |", " +" } ,{ "+---+", "| |", "| |", "+---+", "| |", "| |", "+---+" } ,{ "+---+", "| |", "| |", "+---+", " |", " |", "+---+" } ,{ " ", " ", "o", " ", "o", " ", " " }}; /* char *dej_num(int num) { switch (num) { case 0: return nula; case 1: return jednicka; case 2: return dvojka; case 3: return trojka; case 4: return ctyrka; case 5: return petka; case 6: return sestka; case 7: return sedm; case 8: return osm; case 9: return */ void print_x(int h1,int h2,int m1,int m2) { for (int i = 0; i < 7; i++) { printf("%s %s %s %s %s\n", znak[h1][i], znak[h2][i], znak[10][i], znak[m1][i], znak[m2][i]); } printf("\n\n"); } int main(void) { int h, m; while (scanf("%d:%d", &h, &m) == 2) { print_x(h/10, h%10, m/10, m%10); } printf("end\n"); return 0; } /* for (int i = 0; i < 7; i++) { switch(h) { case 1: case 2: case 3: case 4: case 5: case 6: case 7: c } */