Skip to content

Commit d40f7f2

Browse files
committed
1 parent a391365 commit d40f7f2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vmgen-ex/fib.mini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
func fib(n)
22
var r;
33
if n<2 then
4-
r:=1;
4+
r:=n;
55
else
66
r:=fib(n-1)+fib(n-2);
77
end if;

vmgen-ex2/fib.mini

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
func fib(n)
22
var r;
33
if n<2 then
4-
r:=1;
4+
r:=n;
55
else
66
r:=fib(n-1)+fib(n-2);
77
end if;

0 commit comments

Comments
 (0)