Wednesday, February 10, 2021

 #include <stdio.h>

int main()
{
    char c;
    printf("enter any alphabet: \n");
    scanf("%c", &c);
    if ((65 <= c && c <= 90) || (97 <= c && c <= 122))
    {
        switch (c)
        {
        case 'a':
        case 'e':
        case 'i':
        case 'o':
        case 'u':
        case 'A':
        case 'E':
        case 'I':
        case 'O':
        case 'U':
            printf("its a vowel");
            break;
        default:
            printf("its a consonant");
        }
    }
    else
    {
        printf("its not an alphabet");
    }
    return 0;
}


No comments:

Software scope

 In software engineering, the software scope refers to the boundaries and limitations of a software project. It defines what the software wi...

Popular Posts