#include <stdio.h>
// AYDA FILICHE 4SC - ESERCIZIO 2
int main(void) {
char car;
car
= tolower(car
); //funzione trovata online if (car >= 'a' && car <= 'z') { //funzione trovata online switch (car) {
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
printf("'%c' è una vocale.\n", car
); break;
default:
printf("'%c' è una consonante.\n", car
); }
}
I2luY2x1ZGUgPHN0ZGlvLmg+Ci8vIEFZREEgRklMSUNIRSA0U0MgLSBFU0VSQ0laSU8gMgppbnQgbWFpbih2b2lkKSB7CiAgIGNoYXIgY2FyOwogICBzY2FuZigiICVjIiwgJmNhcik7CmNhciA9IHRvbG93ZXIoY2FyKTsgLy9mdW56aW9uZSB0cm92YXRhIG9ubGluZSBpZiAoY2FyID49ICdhJyAmJiBjYXIgPD0gJ3onKSB7IC8vZnVuemlvbmUgdHJvdmF0YSBvbmxpbmUKICAgc3dpdGNoIChjYXIpIHsKICAgICAgIGNhc2UgJ2EnOgogICAgICAgY2FzZSAnZSc6CiAgICAgICBjYXNlICdpJzoKICAgICAgIGNhc2UgJ28nOgogICAgICAgY2FzZSAndSc6CiAgICAgICAgICAgcHJpbnRmKCInJWMnIMOoIHVuYSB2b2NhbGUuXG4iLCBjYXIpOwogICAgICAgICAgIGJyZWFrOwogICAgICAgZGVmYXVsdDoKcHJpbnRmKCInJWMnIMOoIHVuYSBjb25zb25hbnRlLlxuIiwgY2FyKTsKIH0gCiAKCQp9CiAg