DEV/DEV1.1/Entrainements/controle_machine_B/circulation.c

23 lines
353 B
C
Raw Normal View History

2024-10-14 15:51:23 +02:00
# include <stdio.h>
# include <stdlib.h>
int main(void) {
char lettre;
char fin = 'z';
char temp;
printf("Entrez une minuscule : ");
scanf("%c", &lettre);
temp = lettre;
while (lettre != fin) {
putchar(lettre);
lettre++;
}
putchar('z');
fin -= 25;
while (fin != temp) {
putchar(fin);
fin++;
}
putchar('\n');
return EXIT_SUCCESS;
}