From 876c0f9964e984c25c72fcea2ea72b689beba870 Mon Sep 17 00:00:00 2001 From: moogin Date: Tue, 10 Sep 2024 14:47:46 +0200 Subject: [PATCH] =?UTF-8?q?Ajout=20des=20fichiers=20des=20s=C3=A9ances=20p?= =?UTF-8?q?r=C3=A9c=C3=A9dentes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DEV1.1/TP01/salut.c | 11 +++++++++++ DEV1.1/base.c | 17 +++++++++++++++++ DEV1.1/reponse.txt | 0 3 files changed, 28 insertions(+) create mode 100644 DEV1.1/TP01/salut.c create mode 100644 DEV1.1/base.c create mode 100755 DEV1.1/reponse.txt diff --git a/DEV1.1/TP01/salut.c b/DEV1.1/TP01/salut.c new file mode 100644 index 0000000..8c8a527 --- /dev/null +++ b/DEV1.1/TP01/salut.c @@ -0,0 +1,11 @@ +/* premier programme */ + +#include +#include + +int main(void) { + printf("%c \n",'Hello '); + printf("%c \n", 'world!'); + return EXIT_SUCCESS; +} + diff --git a/DEV1.1/base.c b/DEV1.1/base.c new file mode 100644 index 0000000..00be814 --- /dev/null +++ b/DEV1.1/base.c @@ -0,0 +1,17 @@ +#include +#include + +int main(void) { + int n = 12; + + printf("%d", (n>>7)&1); + printf("%d", (n>>6)&1); + printf("%d", (n>>5)&1); + printf("%d", (n>>4)&1); + printf("%d", (n>>3)&1); + printf("%d", (n>>2)&1); + printf("%d", (n>>1)&1); + printf("%d", n&1); + printf("\n"); + return EXIT_SUCCESS; +} \ No newline at end of file diff --git a/DEV1.1/reponse.txt b/DEV1.1/reponse.txt new file mode 100755 index 0000000..e69de29