105. Vowel or not
#include<stdio.h>
void
main()
{
char ch;
printf("Enter the character :
");
scanf("%c",&ch);
switch(ch)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
case 'A':
case 'E':
case 'I':
case 'O':
case 'U':
printf("Its a
vowel\n");
break;
default:
printf("Its not a
vowel\n");
}
}
Comments
Post a Comment