18 lines
232 B
C
18 lines
232 B
C
|
|
#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*/
|