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

9 lines
221 B
C

#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));
}