Artifact c084fe1cc5aa10092f0e4522ec85841f6c4a56d1:
- File tests/langbench/fib.l — part of check-in [69b737f5a1] at 2016-04-19 20:35:49 on branch little — Fork of Tcl used in the "Little" project. http://www.mcvoy.com/lm/little/index.html (user: dgp, size: 192) [annotate] [blame] [check-ins using]
int fib(int n) { if (n < 2) { return (n); } else { return (fib(n - 1) + fib(n - 2)); } } void main() { int i; for (i = 0; i <= 30; ++i) { printf("n=%d => %d\n", i, fib(i)); } }