Forget Code launches a powerful code generator for building API's

Vowel Or Not in C

Program to Check Whether the given character is belongs to vowels or not!
For Example:
if user input character is 'a' or 'A'
We must to check both for lower and upper case so that we can clearly Show the vowels to the users.
#include <stdio.h>
  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);
    printf("%c is not a vowel.\n", ch);
  return 0;