Search This Blog

Translate

c program to check vowels and consonant in a given string using switch case


 c program  to check vowels and consonant in a given string using switch case
#include
#include
void main()
{
  char ch;
  clrscr();
  printf("\n Enter the lower case alphabet to find vowels & consonant:");
  scanf("%c",&ch);
  switch(ch)
  {
   case 'a':
   case 'e':
   case 'i':
   case 'o':
   case 'u':printf("\n Vowel");  break;
   default :printf("\n Consonent");
  }
}

C Program example List

Google+ Badge