DEV/DEV1.1/Entrainements/controle_machine_A/cible.c

19 lines
366 B
C
Raw Permalink Normal View History

2024-10-15 12:51:01 +02:00
# include <stdio.h>
# include <stdlib.h>
int main(void) {
char lettre;
char debut;
printf("Entrez une minuscule : ");
scanf("%c", &lettre);
for (debut = 'a'; debut != lettre; debut++) {
putchar(debut);
}
printf("[%c]", lettre);
lettre++;
for (debut = ('z' + 1); debut != lettre; lettre++) {
putchar(lettre);
}
putchar('\n');
return EXIT_SUCCESS;
}