From: Doni Pracner Date: Wed, 8 Jan 2014 21:11:10 +0000 (+0100) Subject: samples - rekfib1, simplify for now X-Git-Tag: v0.1.4~33 X-Git-Url: https://svarog.pmf.uns.ac.rs/gitweb/?a=commitdiff_plain;h=828348903395face0772669b3270edc4d44b7ebf;p=mjc2wsl.git samples - rekfib1, simplify for now --- diff --git a/samples/RekFib.mj b/samples/RekFib.mj index 1c297e5..6f324b3 100644 --- a/samples/RekFib.mj +++ b/samples/RekFib.mj @@ -4,13 +4,11 @@ program RekFib{ { if (f==0) return 0; if (f==1) return 1; - return fib(f-1)+fib(f-2) ; + return fib(f-2)+fib(f-1) ; } void main() - int i; { - print(fib(0)); - print(fib(7)); + print(fib(2)); } } \ No newline at end of file