Commit 9d297357 authored by Gabe Gomez's avatar Gabe Gomez

Add p3.c file

parent 10228455
#include <stdio.h>
#include <string.h>
int fibonacci (int n) {
if (n==0 || n==1)
return n;
else
return fibonacci(n-1)+fibonacci(n-2);
}
int main(){
printf("%d\n", fibonacci(10));
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment