write a program to find whether a character is vowel or not by using switch case .

#include<stdio.h>
#include<conio.h>
int main()
{
char ch;
printf("enter a character:");
scanf("%c",&ch);
switch(ch)
{
case 'a':
case 'e':
case 'i':
case 'o':
case 'u':
printf("%c is  vowel",ch);
break;
default:
printf("%c is not vowel",ch);
break;
}
return 0;
}


Comments

Popular posts from this blog

write a program for insertion sort with example.