#include <stdio.h>
int main() {
char caractere;
// Demander à l'utilisateur d'entrer un caractère
printf("Entrez un caractere : ");
scanf("%c", &caractere);
// Vérifier si le caractère est une majuscule
if (caractere >= 'A' && caractere <= 'Z') {
printf("Le caractere %c est une majuscule.\n", caractere);
} else {
printf("Le caractere %c est miniscule.\n", caractere);
}
return 0;
}
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter