Breaking

vowel or constant


#include <stdio.h>
void main()
{
     char ch;
    
     printf("Enter a character: ");
     scanf('%c', &ch);
    
    if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch =='u')
    {
    printf(" %c is a vowels ", ch) ;
   
    }
  else  if(ch=='A' || ch=='E' || ch=='I' || ch=='O' || ch =='U')
  {
  printf("%c is a vowel ", ch) ;
  }
  else
  {
  printf(" %c is a constant", ch);
  }
Simple Output :
Enter a character :L

L is a constant