char huruf = 'e';
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
switch (huruf) {
case 'a':
case 'i':
case 'u':
case 'e':
case 'o':
Serial.print(String(huruf) + " adalah huruf vokal");
break;
case 'b':
case 'c':
case 'd':
case 'f':
case 'g':
case 'h':
case 'j':
case 'k':
case 'l':
case 'm':
case 'n':
case 'p':
case 'q':
case 'r':
case 's':
case 't':
case 'v':
case 'w':
case 'x':
case 'y':
case 'z':
Serial.print(String(huruf) + "adalah huruf konsonan");
}
}
void loop() {
// put your main code here, to run repeatedly:
}