Ajout TPS + Entrainements
This commit is contained in:
8
DEV1.1/TP28/TP28_reponses.txt
Normal file
8
DEV1.1/TP28/TP28_reponses.txt
Normal file
@@ -0,0 +1,8 @@
|
||||
----- TP28 : Récursivité (suite) -----
|
||||
|
||||
1.
|
||||
|
||||
|
||||
|
||||
2.
|
||||
|
13
DEV1.1/TP28/test.c
Normal file
13
DEV1.1/TP28/test.c
Normal file
@@ -0,0 +1,13 @@
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
int f(int n) {
|
||||
if (n>100)
|
||||
return n-10;
|
||||
else
|
||||
return f(f(n+11));
|
||||
}
|
||||
|
||||
int main(void) {
|
||||
f(12);
|
||||
}
|
Reference in New Issue
Block a user