From f4b9936c0c1bb32de3493898a1298820a746c4ac Mon Sep 17 00:00:00 2001 From: Simoes Lukas Date: Mon, 14 Oct 2024 13:48:14 +0200 Subject: [PATCH] Ajout --- .../controle_machine_A/chouette.c | 7 +++++++ .../controle_machine_A/conversion.c | 19 +++++++++++++++++++ .../controle_machine_A/correspondances.c | 9 +++++++++ .../Entrainements/controle_machine_A/test.py | 0 4 files changed, 35 insertions(+) create mode 100644 DEV1.1/Entrainements/controle_machine_A/chouette.c create mode 100644 DEV1.1/Entrainements/controle_machine_A/conversion.c create mode 100644 DEV1.1/Entrainements/controle_machine_A/correspondances.c create mode 100644 DEV1.1/Entrainements/controle_machine_A/test.py diff --git a/DEV1.1/Entrainements/controle_machine_A/chouette.c b/DEV1.1/Entrainements/controle_machine_A/chouette.c new file mode 100644 index 0000000..94d6168 --- /dev/null +++ b/DEV1.1/Entrainements/controle_machine_A/chouette.c @@ -0,0 +1,7 @@ +# include +# include + +int main(void) { + printf("{o,o}\n(__(\\n-\"-\"-\n"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/Entrainements/controle_machine_A/conversion.c b/DEV1.1/Entrainements/controle_machine_A/conversion.c new file mode 100644 index 0000000..7daa889 --- /dev/null +++ b/DEV1.1/Entrainements/controle_machine_A/conversion.c @@ -0,0 +1,19 @@ +#include +#include + +int main(void) { + double pouce, pied; + double taille_utilisateur; + int nb_pieds, nb_pouces; + int i; + nb_pieds, nb_pouces = 0; + pouce = 0.0256; /* Valeur donnée en m */ + pied = pouce * 12; + printf("Entrez votre taille : "); + scanf("%lf", &taille_utilisateur); + for (;taille_utilisateur > 0; (taille_utilisateur - 0.25)){ + nb_pieds++; + printf("%f",taille_utilisateur); + } + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/Entrainements/controle_machine_A/correspondances.c b/DEV1.1/Entrainements/controle_machine_A/correspondances.c new file mode 100644 index 0000000..c7c9d3b --- /dev/null +++ b/DEV1.1/Entrainements/controle_machine_A/correspondances.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) { + printf("%d\n", 58); + printf("%o\n", 05); /* Littéralement impossible */ + printf("%x\n", 0x58); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/Entrainements/controle_machine_A/test.py b/DEV1.1/Entrainements/controle_machine_A/test.py new file mode 100644 index 0000000..e69de29