AJout des fichiers des sances precedentes
This commit is contained in:
parent
6f2df16f65
commit
2bef7749e5
10
DEV1.1/TP01/TP01
Normal file
10
DEV1.1/TP01/TP01
Normal file
@ -0,0 +1,10 @@
|
||||
/* premier programme */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Hello World!\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
BIN
DEV1.1/TP01/executable
Executable file
BIN
DEV1.1/TP01/executable
Executable file
Binary file not shown.
1854
DEV1.1/TP01/intermediaire.i
Normal file
1854
DEV1.1/TP01/intermediaire.i
Normal file
File diff suppressed because it is too large
Load Diff
10
DEV1.1/TP01/salut.c
Normal file
10
DEV1.1/TP01/salut.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* premier programme */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Hello World!\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
10
DEV1.1/TP01/~salut.c
Normal file
10
DEV1.1/TP01/~salut.c
Normal file
@ -0,0 +1,10 @@
|
||||
/* premier programme */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Hello World!\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
31
DEV1.1/TP02/#décalage#
Normal file
31
DEV1.1/TP02/#décalage#
Normal file
@ -0,0 +1,31 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
int n = 35;
|
||||
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>>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>>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;
|
||||
}
|
||||
000100011
|
9
DEV1.1/TP02/base.c
Normal file
9
DEV1.1/TP02/base.c
Normal file
@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
printf("toto%d\n", 72);
|
||||
printf("%d\n", 0110);
|
||||
printf("%d\n", 0x48);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
17
DEV1.1/TP02/décalage
Normal file
17
DEV1.1/TP02/décalage
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;
|
||||
}
|
6
DEV1.1/TP02/multiplication.c
Normal file
6
DEV1.1/TP02/multiplication.c
Normal file
@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%d\n" , 73 << 4);
|
||||
}
|
BIN
DEV1.1/TP02/valeurafond
Executable file
BIN
DEV1.1/TP02/valeurafond
Executable file
Binary file not shown.
Loading…
Reference in New Issue
Block a user