Program to find vowels and consonants (C++)

Program to find vowels and consonants

-Program:

#include <stdio.h>
#include <conio.h>
void main()
{

char ch;
printf(“Enter an alphabet:”);
ch = getche();
if (ch == ‘a’)
if (ch == ‘A’)
printf(“Vowel”);
else
if (ch == ‘e’)
if (ch == ‘E’)
printf(“Vowel”);
else
if (ch == ‘i’)
if (ch == ‘I’)
printf(“Vowel”);
else
if (ch == ‘o’)
if (ch == ‘O’)
printf(“Vowel”);
else
if (ch == ‘u’)
if (ch == ‘U’)
printf(“Vowel”);

else
printf(“Consonant”);
}


“My posts/articles/images are not allowed to be stolen/copied anywhere at Cyber space. Doing so will allow me to take a legal action against the copier.”

Related Posts

M.Bakhtiar Zuberi
Hello, I'm M.Bakhtiar Zuberi, the only article poster & owner of this website. Your comments/suggestions are welcomed the most! RajasTutorials.com is a part of 3DPixelz.com network.

Leave a Comment

Kindly solve the following puzzle to prove that you\'re not a bot: