C++ Language
#include<iostream.h> #include<conio.h> void main() { char ch; clrscr(); cout<<"Enter a Character - "; cin>>ch; switch(ch) { case 'a': case 'e': case 'i': case 'o': case 'u': case 'A': case 'E': case 'I': case 'O': case 'U': cout<<"It is a Vowel"; break; default: cout<<"It is not a Vowel"; } getch(); } /*OUTPUT*/ Enter a Character - A It is a Vowel