Vowel or consonent program


Vowel or consonent program

#include<stdio.h>
int main()
{
  char ch;
  printf("Enter word\n");
  scanf("%c",&ch);
  if(ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u')
  {
    printf("vowel");
  }
  else
  {
    printf("consonent");
  }
}

Post a Comment

0 Comments