C Program: Check the Character Vowel or Not by using switch Statement

C Program: Check the Character Vowel or Not by using switch Statement

#include<stdio.h>

main()
{

char ch;

printf("Enter character:");
scanf("%c",&ch);

switch(ch)
{
case 'a':
case 'e':
case 'o':
case 'i':
case 'u':
 printf(" '%c' is Vowl\n",ch);
break;

default:

printf("Not vowl\n");

break;
}
}

Related Posts