From 1001dfe58d71fe56d6ee2c4b1e58e851a6c82000 Mon Sep 17 00:00:00 2001 From: Emmanuel SRIVASTAVA TIAMZON Date: Fri, 25 Oct 2024 23:11:13 +0200 Subject: [PATCH] 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; + +} +