#include<conio.h>
#include<stdio.h>
#include<iostream.h>
void main()
{
clrscr();
char ch;
cout<<"Enter a Charecter";
cin>>ch;
switch(ch)
{
case'a':
case'A':
case'e':
case'E':
case'i':
case'I':
case'o':
case'O':
case'u':
case'U':
cout<<"Charecter vowel";
break;
default:
cout<<"Charector is consonent";
}
getch();
}
#include<stdio.h>
#include<iostream.h>
void main()
{
clrscr();
char ch;
cout<<"Enter a Charecter";
cin>>ch;
switch(ch)
{
case'a':
case'A':
case'e':
case'E':
case'i':
case'I':
case'o':
case'O':
case'u':
case'U':
cout<<"Charecter vowel";
break;
default:
cout<<"Charector is consonent";
}
getch();
}
Very informative article.Thank you author for posting this kind of article .
ReplyDeletehttp://www.wikitechy.com/view-article/vowel-checking-program-in-c-with-example-and-explanation
Both are really good,
Cheers,
Venkat