From 222dc0d00a96a7029f0a2d1aefdf106f3e3a58ee Mon Sep 17 00:00:00 2001 From: jabbar Date: Tue, 16 Sep 2025 16:46:00 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20fichiers=20des=20s=C3=A9ances=20p?= =?UTF-8?q?r=C3=A9c=C3=A9dentes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV1.1/TP05/#Exo_4.c# | 12 ------------ DEV1.1/TP05/.#Exo_4.c | 1 - DEV1.1/TP05/Exo_4.c | 2 +- DEV1.1/TP06/Exo1.c | 25 +++++++++++++++++++++++++ DEV1.1/TP06/Exo2.c | 14 ++++++++++++++ DEV1.1/TP06/réponses.txt | 0 6 files changed, 40 insertions(+), 14 deletions(-) delete mode 100644 DEV1.1/TP05/#Exo_4.c# delete mode 120000 DEV1.1/TP05/.#Exo_4.c create mode 100644 DEV1.1/TP06/Exo1.c create mode 100644 DEV1.1/TP06/Exo2.c create mode 100644 DEV1.1/TP06/réponses.txt diff --git a/DEV1.1/TP05/#Exo_4.c# b/DEV1.1/TP05/#Exo_4.c# deleted file mode 100644 index d109852..0000000 --- a/DEV1.1/TP05/#Exo_4.c# +++ /dev/null @@ -1,12 +0,0 @@ -#include -#include - -int main(void) { - int n; - double x; - printf("entrez un nombre : "); - n = scanf("%lf", &x); - printf("%f\n", x); - return EXIT_SUCCESS; -} - diff --git a/DEV1.1/TP05/.#Exo_4.c b/DEV1.1/TP05/.#Exo_4.c deleted file mode 120000 index 1607f57..0000000 --- a/DEV1.1/TP05/.#Exo_4.c +++ /dev/null @@ -1 +0,0 @@ -jabbar@salle224-01.6268:1757929846 \ No newline at end of file diff --git a/DEV1.1/TP05/Exo_4.c b/DEV1.1/TP05/Exo_4.c index 430ed2c..d109852 100644 --- a/DEV1.1/TP05/Exo_4.c +++ b/DEV1.1/TP05/Exo_4.c @@ -6,7 +6,7 @@ int main(void) { double x; printf("entrez un nombre : "); n = scanf("%lf", &x); - printf("%f\n", x,x,x,x,x,x); + printf("%f\n", x); return EXIT_SUCCESS; } diff --git a/DEV1.1/TP06/Exo1.c b/DEV1.1/TP06/Exo1.c new file mode 100644 index 0000000..8f14733 --- /dev/null +++ b/DEV1.1/TP06/Exo1.c @@ -0,0 +1,25 @@ +#include +#include + + +int main(void) { + int x=3; + + if (x=2) { + printf("x vaut 2\n"); + } else { + printf("x est different de 2\n"); + } + + printf("%d\n", x); + + if (x=0) { + printf("x vaut 0\n"); + } else { + printf("x est different de 0\n"); + } + + printf("%d\n", x); + + return EXIT_SUCCESS; +} diff --git a/DEV1.1/TP06/Exo2.c b/DEV1.1/TP06/Exo2.c new file mode 100644 index 0000000..bcc3e8a --- /dev/null +++ b/DEV1.1/TP06/Exo2.c @@ -0,0 +1,14 @@ +#include +#include + +int main(void) { + int x; + printf("entrez un nombre entier"); + x = scanf("%d",&x); + + if (x>0) { + printf("%d\n", x*3); + } + + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/TP06/réponses.txt b/DEV1.1/TP06/réponses.txt new file mode 100644 index 0000000..e69de29