Wednesday, February 3, 2021

 //program by dikshit

#include <stdio.h>

int main()

{

    char c;

    int lowercase_voweluppercase_vowel;

    printf("enter an alphabet :    ");

    scanf("%c", &c);

    lowercase_vowel = (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u');

    uppercase_vowel = (c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U');

    if (lowercase_vowel || uppercase_vowel)

        printf("%c is a vowel"c);

    else

        printf("%c is a consonant"c);

    return 0;
}

No comments:

HackCache ’26: A 48-Hour Online Hackathon Open to Every Student

  Hackathons are often associated with computer science students, experienced developers, and teams that already know exactly what they are...

Popular Posts