From 6828f16e4873e90a79e6f37cb786f6d6facbe1f5 Mon Sep 17 00:00:00 2001 From: Bekkouche Anis Date: Mon, 14 Oct 2024 17:26:47 +0200 Subject: [PATCH] jfnjfj --- DEV1.1/essai_ctrl_m/chouette.c | 8 ++++++++ DEV1.1/essai_ctrl_m/coincid.c | 21 +++++++++++++++++++++ DEV1.1/essai_ctrl_m/corresp.c | 9 +++++++++ 3 files changed, 38 insertions(+) create mode 100644 DEV1.1/essai_ctrl_m/chouette.c create mode 100644 DEV1.1/essai_ctrl_m/coincid.c create mode 100644 DEV1.1/essai_ctrl_m/corresp.c 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; +}