C programming
Program of to find Vowel or Consonant:
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf(" \n Enter a
character:");
ch=getche();
switch(ch)
{
case'a':
case'e':
case'i':
case'o':
case'u':
printf("\n\n\n\a your character
is vowel.");
break;
default:
printf("\n\n\n\a your choice
is not a vowel.");
break;}
getch(); }
No comments:
Post a Comment
Please comment bellow. Share your knowledge