Ajout des fichiers des séances précédentes
This commit is contained in:
18
DEV1.1/TP03/extraction.c
Normal file
18
DEV1.1/TP03/extraction.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user