Major header file rewrite and cleanup, but no new functions
[svn/Cll1h/.git] / demos / stromecek.c
... / ...
CommitLineData
1#include "cll1.h"
2
3program
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}
This page took 0.115544 seconds and 4 git commands to generate.