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

This commit is contained in:
2023-09-12 14:25:11 +02:00
parent 42f71afb7a
commit 84006e98ee
24 changed files with 183 additions and 0 deletions

BIN
DEV1.1/TP03/Salut Executable file

Binary file not shown.

22
DEV1.1/TP03/Salut.c Normal file
View File

@@ -0,0 +1,22 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
char l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,excla;
l1='H';
l2='e';
l3='l';
l4='l';
l5='o';
l6='W';
l7='o';
l8='r';
l9='l';
l10='d';
excla='!';
printf("%c%c%c%c%c %c%c%c%c%c %C\n",l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,excla);
return EXIT_SUCCESS;
}

BIN
DEV1.1/TP03/chiffre Executable file

Binary file not shown.

11
DEV1.1/TP03/chiffre.c Normal file
View File

@@ -0,0 +1,11 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
char val='8';
val=val-1;
printf("%c\n",val);
return EXIT_SUCCESS;
}

BIN
DEV1.1/TP03/encodage1 Executable file

Binary file not shown.

10
DEV1.1/TP03/encodage1.c Normal file
View File

@@ -0,0 +1,10 @@
/* premier programme */
#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;
}

BIN
DEV1.1/TP03/encodage2 Executable file

Binary file not shown.

9
DEV1.1/TP03/encodage2.c Normal file
View File

@@ -0,0 +1,9 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("%c\n", 'î');
return EXIT_SUCCESS;
}

BIN
DEV1.1/TP03/extraction Executable file

Binary file not shown.

18
DEV1.1/TP03/extraction.c Normal file
View File

@@ -0,0 +1,18 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
char c1,c2,c3,c4;
printf("Quelle est votre numéro de sécurité ?\n");
getchar();
getchar();
c1=getchar();
c2=getchar();
getchar();
c3=getchar();
c4=getchar();
printf("%c%c/%c%c\n",c3,c4,c1,c2);
return EXIT_SUCCESS;
}

BIN
DEV1.1/TP03/lettre Executable file

Binary file not shown.

11
DEV1.1/TP03/lettre.c Normal file
View File

@@ -0,0 +1,11 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
char lettre='a';
lettre=lettre-32;
printf("%c\n",lettre);
return EXIT_SUCCESS;
}