Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<cstring>
- using namespace std;
- #define VOWELS "aeiouAEIOU"
- int main() {
- char s[20];
- cin >> s;
- int n = strlen(VOWELS);
- for (int i = 0; i < n; i++) {
- if (!strchr(s, VOWELS[i])) {
- putchar(VOWELS[i]);
- }
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment