icp/oer/courses/c-basics/sections/03-functions/08-recursion/program.c

9 lines
221 B
C
Raw Normal View History

2018-05-05 22:18:02 +00:00
#include <stdio.h>
// Write a function to return the n-th Fibonacci number
// Use recursive calls to simplify the code
int main(int argc, const char *argv[])
{
printf("the fifth fibonacci number is: %d", fib(5));
}