diff options
1 files changed, 13 insertions, 0 deletions
| -rw-r--r-- | Sem. 01/Solutions/task3.cpp | 13 |
diff --git a/Sem. 01/Solutions/task3.cpp b/Sem. 01/Solutions/task3.cpp new file mode 100644 index 0000000..cc987be --- /dev/null +++ b/Sem. 01/Solutions/task3.cpp @@ -0,0 +1,13 @@ +#include <iostream> +using namespace std; + +int main() +{ + char ch; + cin >> ch; + + bool isVowel = ch == 'a' || ch == 'e' || ch == 'o' || ch == 'u' || ch == 'i' + || ch == 'A' || ch == 'E' || ch == 'O' || ch == 'U' || ch == 'I'; + + cout << isVowel << endl; +} |
