From 92faaf81b89ab29b6de7a228f74e532db7e67269 Mon Sep 17 00:00:00 2001 From: Simoes Lukas Date: Tue, 10 Sep 2024 15:03:39 +0200 Subject: [PATCH] Ajout du TP05 --- DEV1.1/TP05/TP05_reponses.txt | 0 DEV1.1/TP05/tests.c | 19 +++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 DEV1.1/TP05/TP05_reponses.txt create mode 100644 DEV1.1/TP05/tests.c diff --git a/DEV1.1/TP05/TP05_reponses.txt b/DEV1.1/TP05/TP05_reponses.txt new file mode 100644 index 0000000..e69de29 diff --git a/DEV1.1/TP05/tests.c b/DEV1.1/TP05/tests.c new file mode 100644 index 0000000..c4dba69 --- /dev/null +++ b/DEV1.1/TP05/tests.c @@ -0,0 +1,19 @@ +# include +# include + +int main(void) { + double nombre; + char lettre; + printf("Veuillez saisir un réel : "); + scanf("%lf", &nombre); + printf("\nSa notation scientifique est : %e\n", nombre); + printf("Veuillez taper un caractère : "); + getchar(); + lettre = getchar(); + printf("%c\n", lettre); + printf("%c\n", lettre); + printf("%c\n", lettre); + printf("%c\n", lettre); + printf("%c\n", lettre); + return EXIT_SUCCESS; +} \ No newline at end of file