| 5 | using namespace std; |
| 6 | |
| 7 | int 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected