]> ruin.nu Git - proglang.git/blob - examples/func
typechecking of functions added, not function calls yet though
[proglang.git] / examples / func
1 int a = fac(3);
2 int b = fib(2);
3 int c = func(a,b);
4
5 if (boolfunc(b,c)) print true;
6
7 int fac(int n){
8         n++;
9         int sum = 1;
10         while (n-- > 1) sum = sum * n;
11         return sum;
12 }