Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- char ch;
- cout << "Vowel Checker!" << endl;
- cout << "Enter a Character: ";
- cin >> ch;
- switch (ch)
- {
- case 'a':
- case 'e':
- case 'i':
- case 'o':
- case 'u':
- case 'A':
- case 'E':
- case 'I':
- case 'O':
- case 'U':
- cout << "It is a vowel.";
- break;
- default:
- cout << "It is not a vowel.";
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement