C++ program to check whether alphabet is vowel or not

ad+1

Program:


// Program By http://solutionscpp.blogspot.com
// Author Mansoor Ahmed
// GMail ID: secguy000@gmail.com

#include<iostream>
using namespace std;

int main()
{
    char c;
   
    cout<<"Enter Character: ";
    cin>>c;
   
    if(c=='A' || c=='a' || c=='E' || c=='e' || c=='I' || c=='i' || c=='O' || c=='o' || c=='U' || c=='u')
    cout<<"Enter Character is Vowel" <<endl;
      
   else
   cout<<"Entered Character is Consonent" <<endl;
      
  return 0;
 
 }

Output:

1 comment: Leave Your Comments

  1. I found nice article in your blog.thank you for useful info
    .

    ReplyDelete