Chapter:

C-programs-on-various-integers

C Program to Check wher an Alphabet is Vowel or Consonant

This program checks whether the input character is vowel or consonant.

Problem Description 

This program takes the character value(entered by user) as input and checks whether that character is a vowel or consonant using if-else statement. Since a user is allowed to enter an alphabet in lowercase and uppercase, the program checks for both uppercase and lowercase vowels and consonants. To understand this program, you should be familiar with the following C Programming concepts:


  • C Programming if statement

  • C Programming if..else statement

Source Code 

#include <stdio.h>

int main()

{

    char ch;

    bool isVowel = false;


    printf("Enter an alphabet: ");

....

Show More

All Chapters

View all Chapter and number of question available From each chapter from C-programming-