<>

Enter Alphabet is vowel or not?



Write a Program that will get the a Single Character and
Tell either it is Vowel or Not?
Sample Output:
Enter Character = e
It.s A Vovel
Do You Want To Continue Press y/n ? y
Enter Number = E
It.s A Vovel
Do You Want To Continue Press y/n ? n


#include <stdio.h>
#include <conio.h>
void main()
{
   char a,x;

   do
   {
      printf("\nEnter Character: ");
      a=getch();
      printf("%c",a);
    
      if(a=='A' || a=='a' || a=='E' || a=='e' || a=='I' ||     a=='i'|| a=='O'|| a=='o' || a=='U' || a=='u')
         printf("\nIts a Vowel");
      else
         printf("\nIts not a Vowel");


     printf("\nDo you want to continue Press y/n? ");
     x=getch();
     printf("%c",x);
  }
  while(x=='y');

  getch();
}
Rate this posting:
{[['']]}

0 comments:

Post a Comment

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

 
TOP