Ajout des fichiers des séances précédentes
This commit is contained in:
parent
f3d10c5c8d
commit
876c0f9964
11
DEV1.1/TP01/salut.c
Normal file
11
DEV1.1/TP01/salut.c
Normal 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
17
DEV1.1/base.c
Normal 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
0
DEV1.1/reponse.txt
Executable file
Loading…
Reference in New Issue
Block a user