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