program to find entered character is vowel or consonent with switch case

#include<stdio.h>
#include<stdlib.h>
void main()
{
char ch;
printf("\nEnter any 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("\nEntered character %c is vowel",ch);
break;
case '1':
case '2':
case '3':
case '4':
case '5':
case '6':
case '7':
case '8':
case '9':
case '0':printf("\nEntered character %c is a Digit",ch);
break;
default:printf("Entered character is not a vowel and digit");
}
}

Comments

Popular posts from this blog

कंप्यूटर की पीढ़ियाँ (Generation of Computer)

Prime Number with break