3.13 Vowel or Consunent

#include <stdio.h>
int main()
{
    char ch;
    printf("enter the character:" );
    scanf("%c", &ch);

    if (ch=='a'||ch=='e'||ch=='i'||ch=='o'||ch=='u'||ch=='A'||ch=='E'||ch=='I'||ch=='O'||ch=='U') //ekhane || hocche othoba er operator
    {
    printf("the %c is vowel\n\n\n",ch);
    }
    else {
        printf("%c is an consunant\n \n", ch);
    }
    return 0;
}






No comments:

Post a Comment