MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main

Function main

Lab_02/04_vowel_consonant.cpp:7–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace std;
6
7int main() {
8 char c;
9
10 cout << "Enter a character: ";
11 cin >> c;
12
13 if (c == 'a' || c == 'e' || c == 'i' || c == 'o' || c == 'u' ||
14 c == 'A' || c == 'E' || c == 'I' || c == 'O' || c == 'U') {
15 cout << "The character is a vowel." << endl;
16 } else {
17 cout << "The character is a consonant." << endl;
18 }
19
20 system("pause");
21 return 0;
22}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected