gitweb on Svarog

projekti pod git sistemom za održavanje verzija -- projects under the git version control system
mjc2wsl - print procedures are simplified to use @Format instead of FOR loops
[mjc2wsl.git] / samples / RekFib.mj
1 program RekFib{
3 int fib(int f)
4 {
5 if (f==0) return 0;
6 if (f==1) return 1;
7 return fib(f-2)+fib(f-1) ;
8 }
10 void main()
11 {
12 print(fib(0),3);
13 print(fib(2),3);
14 print(fib(7),3);
15 }
16 }
Svarog.pmf.uns.ac.rs/gitweb maintanance Doni Pracner