Skip to content

Commit

Permalink
SolutionByPrabsimar.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Prabsimar authored Oct 6, 2023
1 parent c7b27cd commit 348e6c2
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include <iostream>
#include<cctype>
using namespace std;

int main() {
char v;
cout<<"Enter the character: ";
cin>>v;

int check = isalpha(v);

if (check == 0)
{
cout << "Not an Alphabet";
}
else
{
if(v == 'a' || v == 'e' || v == 'i' || v == 'o' || v == 'u' || v == 'A' || v == 'E' || v == 'I' || v == 'O' || v == 'U')
{
cout << "It is a Vowel";
}
else
{
cout << "It is a consonent";
}
}
return 0;
}

0 comments on commit 348e6c2

Please sign in to comment.