Ajout des fichiers des séances précédentes
This commit is contained in:
13
DEV1.1/TP01/#salut.c#
Normal file
13
DEV1.1/TP01/#salut.c#
Normal 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
9
DEV1.1/TP01/bases.c
Normal 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
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
16
DEV1.1/TP01/reponses .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/reponses.c
Normal file
16
DEV1.1/TP01/reponses.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;
|
||||
}
|
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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user