C LANGUAGE - TO CHECK VOWEL OR NOT

// check whether the given character is Vowel or not using switch case #include <stdio.h> #include <conio.h> int main() { char ch; clrscr(); printf( " Enter any Character : " ); scanf( "%c", &ch ); switch( ch ) { case 'a': case 'A': case 'e': case 'E': case 'i': case 'I': case 'o': case 'O': case 'u': case 'U': printf( "\n %c is Vowel.", ch ); break; default : printf( "\n %c is not a Vowel.", ch ); break; } getch(); return 0; }
Note: Click on copy button to copy the given code and you can paste it in any online compiler to see the result, IF YOU ARE A MOBILE USER THEN DOWNLOAD "CODING C"(Free App) COMPILER FROM GOOGLE PLAY STORE.