0 votes
106 views
in C programming by (98.9k points)
edited
C Program to Check Whether an Alphabet is Vowel or Consonant

1 Answer

0 votes
by (98.9k points)
selected by
 
Best answer
#include <stdio.h>
#include <conio.h>
 
int main(){
    char c;
    printf("Enter a Character: ");
    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("%c is a Vowel\n", c);
    } else {
        printf("%c is a Consonant\n", c);
    }
    getch();
    return 0;
}

 

Related questions

0 votes
0 answers 65 views
0 votes
1 answer 130 views
0 votes
1 answer 146 views
0 votes
1 answer 103 views
0 votes
1 answer 117 views
asked Jul 20, 2022 in C programming by Doubtly (98.9k points)
0 votes
1 answer 113 views

Doubtly is an online community for engineering students, offering:

  • Free viva questions PDFs
  • Previous year question papers (PYQs)
  • Academic doubt solutions
  • Expert-guided solutions

Get the pro version for free by logging in!

5.7k questions

5.1k answers

108 comments

535 users

...