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

This commit is contained in:
2025-09-09 16:36:11 +02:00
parent cad14ba88f
commit 09c121ea7c
6 changed files with 725 additions and 0 deletions

13
DEV1.1/TP01/#salut.c# Normal file
View File

@@ -0,0 +1,13 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%c", "H");
printf("%c", "e");
printf("%c", "l");
printf
return EXIT_SUCCESS;
}

9
DEV1.1/TP01/bases.c Normal file
View File

@@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%\n", 72);
printf("%\n", 0110);
printf("%\n", 0x48);
return EXIT_SUCCESS;
}

661
DEV1.1/TP01/intermediaire.i Normal file

File diff suppressed because it is too large Load Diff

16
DEV1.1/TP01/reponses .c Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%d\n", 100/6);
printf("%d\n", 100%6);
printf("%d\n", 0x1A*015);
printf("%d\n", -3/5);
printf("%d\n", -31/5);
printf("%d\n", -31%5);
printf("%d\n", 100*(3/5));
printf("%d\n", 100*3/5);
printf("%d\n", 2-3-5);
printf("%d\n", 2-(3-5));
return EXIT_SUCCESS;
}

16
DEV1.1/TP01/reponses.c Normal file
View File

@@ -0,0 +1,16 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%d\n", 100/6);
printf("%d\n", 100%6);
printf("%d\n", 0x1A*015);
printf("%d\n", -3/5);
printf("%d\n", -31/5);
printf("%d\n", -31%5);
printf("%d\n", 100*(3/5));
printf("%d\n", 100*3/5);
printf("%d\n", 2-3-5);
printf("%d\n", 2-(3-5));
return EXIT_SUCCESS;
}

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

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