diff --git a/DEV1.1/essai_ctrl_m/chouette.c b/DEV1.1/essai_ctrl_m/chouette.c new file mode 100644 index 0000000..9aed280 --- /dev/null +++ b/DEV1.1/essai_ctrl_m/chouette.c @@ -0,0 +1,8 @@ +#include +#include + +int main(void){ + printf("{o,o}\n"); + printf("(__(\\\n"); + printf("-\"-\"-\n"); +} diff --git a/DEV1.1/essai_ctrl_m/coincid.c b/DEV1.1/essai_ctrl_m/coincid.c new file mode 100644 index 0000000..5dd6843 --- /dev/null +++ b/DEV1.1/essai_ctrl_m/coincid.c @@ -0,0 +1,21 @@ +#include +#include + +int main (void){ + int i; + int entier[4]; + int occurrences=0; + for(i=0;i<5;i++){ + printf("Jet n°%d : ", i+1); + scanf(" %d", &entier[i]); + if(entier[i]>6 || entier[i]<1){ + printf(" Veuillez entrer un entier entre 1 et 6\n"); + scanf(" %d", &entier[i]); + } + } + for(i=0;i<5;i++){ + if(entier[i]!=entier[i] + } + printf("Occurences maximum : ", occurrences); +} + diff --git a/DEV1.1/essai_ctrl_m/corresp.c b/DEV1.1/essai_ctrl_m/corresp.c new file mode 100644 index 0000000..d6b2d6f --- /dev/null +++ b/DEV1.1/essai_ctrl_m/corresp.c @@ -0,0 +1,9 @@ +#include +#include + +int main(void) { + printf("%d\n", 58); + printf("%o\n", 72); + printf("%x\n", 0x3a); + return EXIT_SUCCESS; +}