Ajout des fichiers des séances précédentes
This commit is contained in:
Executable
BIN
Binary file not shown.
Executable
BIN
Binary file not shown.
@@ -0,0 +1,10 @@
|
||||
/* premier programme */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Hello World!\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Executable
BIN
Binary file not shown.
@@ -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;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
|
||||
int main(void) {
|
||||
int n = 1;
|
||||
while (n >= 0){
|
||||
printf("%d\n", n);
|
||||
n=n*2;
|
||||
}
|
||||
printf("%d\n", n);
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,17 @@
|
||||
#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));
|
||||
printf(La plus grande valeur est : )
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,21 @@
|
||||
/* premier programme */
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("H\n");
|
||||
printf("e\n");
|
||||
printf("l\n");
|
||||
printf("l\n");
|
||||
printf("o\n");
|
||||
printf(" \n");
|
||||
printf("W\n");
|
||||
printf("o\n");
|
||||
printf("r\n");
|
||||
printf("l\n");
|
||||
printf("d\n");
|
||||
printf("!\n");
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%c\n", '\x37');
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("%c\n", '\x41');
|
||||
}
|
||||
Executable
BIN
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int main(void) {
|
||||
printf("Unicode : %c%c\n", '\xC3', '\xAE');
|
||||
printf("Latin 1 : %c\n", '\xEE');
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
|
||||
I.
|
||||
1. id <login>
|
||||
2. uname -m
|
||||
3. Dans mon repertoire domicile "dacostaj"
|
||||
4. /etc/ contient énormément de fichier
|
||||
|
||||
II.
|
||||
1. dacostaj
|
||||
2. cd /etc/
|
||||
3. cd
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
s
|
||||
Reference in New Issue
Block a user