Ajout des fichiers des s?ances pr?c?dentes
This commit is contained in:
parent
9dbea66b66
commit
405c42d4f1
BIN
DEV1.1/TP01/Calcul
Executable file
BIN
DEV1.1/TP01/Calcul
Executable file
Binary file not shown.
16
DEV1.1/TP01/Calcul.c
Normal file
16
DEV1.1/TP01/Calcul.c
Normal 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/PlusGrandEntierPossible.c
Normal file
16
DEV1.1/TP01/PlusGrandEntierPossible.c
Normal 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
BIN
DEV1.1/TP01/bases
Executable file
Binary file not shown.
9
DEV1.1/TP01/bases.c
Normal file
9
DEV1.1/TP01/bases.c
Normal 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
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
10
DEV1.1/TP01/reponses.txt
Normal 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
BIN
DEV1.1/TP01/salut
Executable file
Binary file not shown.
8
DEV1.1/TP01/salut.c
Normal file
8
DEV1.1/TP01/salut.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
int main() {
|
||||
printf("Salut le monde ! \n");
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user