Alphabet is Vowel or Consonant in C - 👑 सार्थक मुंड S3 🤴🏻

Alphabet is Vowel or Consonant in C

Write a program (WAP) in C to read two numbers from keyboard(User Input) to know a character is vowel or consonant.

#include <stdio.h>
int main()
{
    char c;

    printf("Enter an alphabet :\n");
    scanf("%c", &c);

    if(c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||
        c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U')  

{
        printf("\n %c is VOWEL.", c);
    }
    else

 {
        printf("\n %c is CONSONANT.\n", c);
    }
    return 0;
}

Try it Yourself ➠
Must Read :-
  1. Blogger Tutorial
  2. C Programs
  3. C++ Programs
  4. Java Programs
  5. Python Programs
  6. Programming Notes 
  7. Questions & Answers
  8. My Codes : HTML, CSS & JS
  9. All Subject Notes
Previous article
Next article

Leave Comments

Post a Comment

Articles Ads

Articles Ads 1

Articles Ads 2

Advertisement Ads