projects
/
testub10.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[gesamt] Added and adopted Testcases from SS09
[testub10.git]
/
gesamt
/
georg_fib_121.0
1
/* fibonacci */
2
3
/* F_0 = 0 */
4
/* F_1 = 1 */
5
/* F_n = F_{n-1} + F_{n-2} */
6
7
method fib(x)
8
if x < 2 then return x; end;
9
return fib(x-1)-(0-fib(x-2));
10
end;