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

This commit is contained in:
Adrian POURCHOT 2022-09-14 11:13:29 +02:00
parent 9dbea66b66
commit 405c42d4f1
9 changed files with 781 additions and 0 deletions

BIN
DEV1.1/TP01/Calcul Executable file

Binary file not shown.

16
DEV1.1/TP01/Calcul.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;
}

View File

@ -0,0 +1,16 @@
#include <stdio.h>
int main(void) {
int x = 2;
int i = 0;
do {
x=x*99999;
i=i+1;
} while (i<10000);
printf("%d\n", x);
printf("%o\n", x);
printf("%x\n", x);
return 0;
}

BIN
DEV1.1/TP01/bases Executable file

Binary file not shown.

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

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

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

File diff suppressed because it is too large Load Diff

10
DEV1.1/TP01/reponses.txt Normal file
View File

@ -0,0 +1,10 @@
printf("%d\n", 100/6); 16
printf("%d\n", 100%6); 4
printf("%d\n", 0x1A*015); 26*13 338
printf("%d\n", -3/5); 0
printf("%d\n", -31/5); -6
printf("%d\n", -31%5); -1
printf("%d\n", 100*(3/5)); 0
printf("%d\n", 100*3/5); 60
printf("%d\n", 2-3-5); -6
printf("%d\n", 2-(3-5)); 4

BIN
DEV1.1/TP01/salut Executable file

Binary file not shown.

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

@ -0,0 +1,8 @@
#include <stdio.h>
int main() {
printf("Salut le monde ! \n");
return 0;
}