Skip to content

Commit

Permalink
SolutionByBavleen.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
bavkaur authored Oct 6, 2023
1 parent c7b27cd commit 91323bd
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <iostream>

int main() {
char value;
std::cout<<"enter the character you want to check? ";
std::cin>>value;
if(value == 'a' || value == 'e' || value == 'i' || value == 'o' || value == 'u' || value == 'A' || value == 'E' || value == 'I' || value == 'O' || value == 'U')
{
std::cout << "It is a Vowel";
}
else
{
std::cout << "It is a consonent";
}

return 0;
}

0 comments on commit 91323bd

Please sign in to comment.