projects
/
mate.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make test: less verbose plzkkthx
[mate.git]
/
tests
/
Fib.java
1
package tests;
2
3
public class Fib {
4
public static int fib(int n) {
5
if(n<=1) return 1;
6
else return fib(n-1) + fib(n-2);
7
}
8
9
public static void main(String[] args) {
10
fib(20);
11
// System.out.printf("%x\n", fib(20));
12
}
13
}