AJout des fichiers des sances precedentes

This commit is contained in:
2022-09-12 15:51:58 +02:00
parent 6f2df16f65
commit 2bef7749e5
10 changed files with 1947 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}
BIN
View File
Binary file not shown.
File diff suppressed because it is too large Load Diff
+10
View File
@@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}
+10
View File
@@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}
+31
View 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
View 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
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;
}
+6
View File
@@ -0,0 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%d\n" , 73 << 4);
}
BIN
View File
Binary file not shown.