//This is a Program to find whether the entered number is Vowel or Consonant using switch statement
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
printf("\n\nEnter any Character: ");
scanf("%c",&ch);
switch(ch)
{
case 'A':
case 'E':
case 'I':
case 'O':
case 'Y':
case 'a':
case 'e':
case 'i':
case 'o':
case 'u': printf("\n\nThe Entered Character is Vowel");
break;
default: printf("\n\nThe Entered Character is consonant");
}
getch();
}
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
printf("\n\nEnter any Character: ");
scanf("%c",&ch);
switch(ch)
{
case 'A':
case 'E':
case 'I':
case 'O':
case 'Y':
case 'a':
case 'e':
case 'i':
case 'o':
case 'u': printf("\n\nThe Entered Character is Vowel");
break;
default: printf("\n\nThe Entered Character is consonant");
}
getch();
}