debut pile

This commit is contained in:
2024-01-08 14:05:33 +01:00
parent c4bc163fe6
commit cffb424f64
29 changed files with 442 additions and 7 deletions

18
DEV1.1/TP27/curiosite.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include <stdlib.h>
int f(int n) {
if (n>100)
return n-10;
else
return f(f(n+11));
}
int main(){
int i;
for (i=0; i<101; i++)
printf("%d\n",f(88));
}
/*Pour les n<101
f renvoie 91*/