Search This Blog

C Program Check Given Alphabet Is Vowel Or Not Using SwitchCase

C Program Check Given Alphabet Is Vowel Or Not Using SwitchCase :
//C Program Check Given Alphabet Is Vowel Or Not Using SwitchCase

#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("\n\n Enter any one character:-");
ch=getche();
switch(ch)
{
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
printf("\n The alphabate is vowel");
break;
default:
printf("\n The alphabate is constant");
break;
}
getch();
}
OUTPUT
C Program Check Given Alphabet Is Vowel Or Not Using SwitchCase

No comments:

Post a Comment