Program to find out the given character is vowel or not (Level - Low)

Program # 17: Program to find out character is vowel or not

//Program to find out the given character is vowel or not (Level - Low)
#include <iostream.h> 
#include <conio.h>

void main ()
{
clrscr (); 
char w;
cout<<"Press any character : "; 
cin >> w;
switch (w)
{
case 'a':
cout<<"The given character is vowel";break ; case 'e':
cout<<"The given character is vowel";break ; case 'i':
cout<<"The given character is vowel";break ; case 'o':
cout<<"The given character is vowel";break ; case 'u':
cout<<"The given character is vowel";break ; default:
cout<<"The given character is not vowel";
}
getch ();
}


Post a Comment

0 Comments