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