From 828348903395face0772669b3270edc4d44b7ebf Mon Sep 17 00:00:00 2001 From: Doni Pracner Date: Wed, 8 Jan 2014 22:11:10 +0100 Subject: [PATCH] samples - rekfib1, simplify for now --- samples/RekFib.mj | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 -- 2.25.1