/* The Great Win32 Language Shootout http://dada.perl.it/shootout/ contributed by Isaac Gouy (Nice novice) To compile: nicec --sourcepath=.. -d=. -a fibo.jar fibo To run: java -jar fibo.jar 32 */ import ackermann; // reuse toSingleInt void main(String[] args){ println( fib( toSingleInt(args) ) ); } int fib(int n){ if (n < 2) return 1; else return fib(n-2) + fib(n-1); }