19 lines
366 B
C
19 lines
366 B
C
# 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;
|
|
} |