Source
Code:
#include<stdio.h>
#include<conio.h>
int main( )
{
char ch;
clrscr( );
printf("\n Enter a character::");
scanf("%c",&ch);
switch(ch)
{
case 'a':
case 'A': printf("\n vowel
entered");
break;
case 'e':
case 'E': printf("\nvowel
entered");
break;
case
'i':
case
'I': printf("\n vowel entered");
break;
case
'o':
case
'O': printf("\n vowel entered");
break;
case
'u':
case
'U': printf("\n vowel entered");
break;
default: printf("\n Consonant
entered");
}
getch();
return 0;
}
No comments:
Post a Comment