Ajout des fichiers des séances précédentes

This commit is contained in:
moogin 2024-09-10 14:47:46 +02:00
parent f3d10c5c8d
commit 876c0f9964
3 changed files with 28 additions and 0 deletions

11
DEV1.1/TP01/salut.c Normal file
View File

@ -0,0 +1,11 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%c \n",'Hello ');
printf("%c \n", 'world!');
return EXIT_SUCCESS;
}

17
DEV1.1/base.c Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
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;
}

0
DEV1.1/reponse.txt Executable file
View File