From c561d94bb3164ac6438c54d25a87d38e100e35db Mon Sep 17 00:00:00 2001 From: Emmanuel SRIVASTAVA TIAMZON Date: Fri, 25 Oct 2024 23:09:26 +0200 Subject: [PATCH 1/2] Add boucle --- boucle | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 boucle diff --git a/boucle b/boucle new file mode 100644 index 0000000..e69de29 -- 2.51.0 From 1001dfe58d71fe56d6ee2c4b1e58e851a6c82000 Mon Sep 17 00:00:00 2001 From: Emmanuel SRIVASTAVA TIAMZON Date: Fri, 25 Oct 2024 23:11:13 +0200 Subject: [PATCH 2/2] Update boucle --- boucle | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) diff --git a/boucle b/boucle index e69de29..7c2528b 100644 --- a/boucle +++ b/boucle @@ -0,0 +1,59 @@ +1) +AVEC WHILE + +#include +#include + +int main(void) { + int x,y; + printf("insérez un entier naturel\n"); + scanf("%d", &x); + printf("insérez un deuxième entier naturel\n"); + scanf("%d", &y); + if (xy){ + printf("%d\n",y); + y+=1; + } + } + return EXIT_SUCCESS; +} + +AVEC DO WHILE +#include +#include + +int main(void) { + int x,y; + printf("insérez un entier naturel\n"); + scanf("%d", &x); + printf("insérez un deuxième entier naturel\n"); + scanf("%d", &y); + if (xy); + } + return EXIT_SUCCESS; + +} + -- 2.51.0