Entrainement

This commit is contained in:
Simoes Lukas
2024-10-14 15:51:23 +02:00
parent f4b9936c0c
commit a379ee9e1f
5 changed files with 108 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# 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;
}