BUT2/DEV/DEV1.1_suite/TP_Recursivité/Q1_Fibonacci.c

12 lines
169 B
C
Raw Permalink Normal View History

2023-10-23 13:23:36 +02:00
#include <stdio.h>
#include <stdlib.h>
int fibonacci(int nbMax, int resultat){
if (result){
return resultat
}
else{
resultat+=fibonacci(nbMax-1, );
}
}