From dad45c24e03aac61e37f6eb58182e02261056c0a Mon Sep 17 00:00:00 2001 From: Jose-maria FULLANA Date: Wed, 6 Oct 2021 20:32:29 +0200 Subject: [PATCH] =?UTF-8?q?Transf=C3=A9rer=20les=20fichiers=20vers=20'TP3'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TP3/for.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 TP3/for.c diff --git a/TP3/for.c b/TP3/for.c new file mode 100644 index 0000000..f315b50 --- /dev/null +++ b/TP3/for.c @@ -0,0 +1,16 @@ +#include + +int main () { + int max = 5; + + int i ; + + for (i =1 ; i<= max ; i++) { + printf("%d \n",i); + } + /********************************/ + /* valeur à la fin */ + /********************************/ + printf("après la boucle i vaut %d \n",i); + return 1; +}