gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
more local var blocks in the translation
[mjc2wsl.git] / samples / RekFac.mj
1 program RekFac{
3 int factorial(int f)
4 {
5 if (f<0) return 0;
6 if (f<=1) return 1;
7 return factorial(f-1) * f ;
8 }
10 void main()
11 {
12 print(factorial(3),3);
13 print(factorial(10),10);
14 }
15 }
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner