From d58e3a59147f3ea3ae405839902eb3e7c0466601 Mon Sep 17 00:00:00 2001 From: Jose-maria FULLANA Date: Wed, 6 Oct 2021 20:32:46 +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/while.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 TP3/while.c diff --git a/TP3/while.c b/TP3/while.c new file mode 100644 index 0000000..5defae6 --- /dev/null +++ b/TP3/while.c @@ -0,0 +1,17 @@ +#include + +int main () { + int max = 5; + + int i = 1; + + while ( i <= max) { + printf("%d \n",i); + i = i + 1 ; + } + /********************************/ + /* valeur à la fin */ + /********************************/ + printf("après la boucle i vaut %d \n",i); + return 1; +}