This repository has been archived on 2019-08-08. You can view files and clone it, but cannot push or open issues or pull requests.
s4-c/TP1/E1-1.c

11 lines
229 B
C

/* Lit 1 caractère et affiche son code ASCII */
#include <stdio.h>
int main() {
int C;
printf("Saisir un caractère suivi de 'Entrée'\n");
C = getchar();
printf("Le caractère %c a le code ASCII %d\n", C, C);
return 0;
}