We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 831cd21 + 348e6c2 commit 40b7655Copy full SHA for 40b7655
1 file changed
Basic/Check Whether a Character is Vowel or Consonant/SolutionByPrabsimar.cpp
@@ -0,0 +1,28 @@
1
+#include <iostream>
2
+#include<cctype>
3
+using namespace std;
4
+
5
+int main() {
6
+ char v;
7
+ cout<<"Enter the character: ";
8
+ cin>>v;
9
10
+ int check = isalpha(v);
11
12
+ if (check == 0)
13
+ {
14
+ cout << "Not an Alphabet";
15
+ }
16
+ else
17
18
+ if(v == 'a' || v == 'e' || v == 'i' || v == 'o' || v == 'u' || v == 'A' || v == 'E' || v == 'I' || v == 'O' || v == 'U')
19
20
+ cout << "It is a Vowel";
21
22
23
24
+ cout << "It is a consonent";
25
26
27
+ return 0;
28
+}
0 commit comments