Abdullah_A_lAsif_001

check vowel or consonant

May 25th, 2019
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.34 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. {
  4.    char ch;
  5.    printf(" Enter the any character:");
  6.    scanf("%c",&ch);
  7.    if(ch=='a' || ch=='A' || ch=='e' || ch=='E' || ch=='i' || ch=='I' || ch=='o' || ch=='O' || ch=='u' || ch=='U')
  8.    {
  9.        printf("%c is vowel\n",ch);
  10.    }
  11.    else
  12.    {
  13.       printf("%c is consonant\n",ch);
  14.  
  15.    }
  16.    return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment