Commit | Line | Data |
---|---|---|
1 | #include "cll1.h" | |
2 | ||
3 | program | |
4 | { | |
5 | const int kmen=28; | |
6 | int jehlici=0,vetev=0,stromecek=2; | |
7 | ||
8 | while(jehlici<=kmen) | |
9 | { | |
10 | repeat(kmen-jehlici) printf(" "); | |
11 | printf("/"); | |
12 | repeat(jehlici<<1) if (jehlici<kmen && vetev<stromecek-1) then printf(" "); else printf("_"); | |
13 | printf("\\\n"); | |
14 | if(++vetev<stromecek) then jehlici++; else jehlici-=vetev>>1,vetev=0,stromecek++; | |
15 | } | |
16 | repeat(kmen) printf(" "); | |
17 | printf("||\n"); | |
18 | } |