Check Input Character is Vowel or Not in Turbo c
  • #include <stdio.h>
     
    int main()
    {
      char ch;
     
      printf("Enter a character\n");
      scanf("%c", &ch);
     
      if (ch == 'a' || ch == 'A' || ch == 'e' || ch == 'E' || ch == 'i' || ch == 'I' || ch =='o' || ch=='O' || ch == 'u' || ch == 'U')
        printf("%c is a vowel.\n", ch);
      else
        printf("%c is not a vowel.\n", ch);
     
      return 0;
    }

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Top Posters Weekly

Optimum Creative