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