1025-fibonacci.src (193B)
1 2 func fib(n i32) i32 { 3 if (n < 2) { 4 return n; 5 } else { 6 return fib(n - 1) + fib(n - 2); 7 } 8 } 9 10 func start() i32 { 11 var n i32 = 0; 12 while n < 24 { 13 _hexout_(fib(n)); 14 n++; 15 } 16 return 7; 17 }
![]() | compilerUnnamed Compiled Systems Language Project |
git clone http://frotz.net/git/compiler.git | |
Log | Files | Refs |