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