DEV/DEV1.1/TP14/curiosité.c

20 lines
236 B
C
Raw Normal View History

2022-12-14 15:29:55 +01:00
#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 argc, char const *argv[])
{
printf("%d\n",f(201));
return 0;
}