Ajout
This commit is contained in:
parent
af0a212997
commit
f4b9936c0c
7
DEV1.1/Entrainements/controle_machine_A/chouette.c
Normal file
7
DEV1.1/Entrainements/controle_machine_A/chouette.c
Normal file
@ -0,0 +1,7 @@
|
||||
# include <stdio.h>
|
||||
# include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
printf("{o,o}\n(__(\\n-\"-\"-\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
19
DEV1.1/Entrainements/controle_machine_A/conversion.c
Normal file
19
DEV1.1/Entrainements/controle_machine_A/conversion.c
Normal file
@ -0,0 +1,19 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
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;
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%d\n", 58);
|
||||
printf("%o\n", 05); /* Littéralement impossible */
|
||||
printf("%x\n", 0x58);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
0
DEV1.1/Entrainements/controle_machine_A/test.py
Normal file
0
DEV1.1/Entrainements/controle_machine_A/test.py
Normal file
Loading…
Reference in New Issue
Block a user