STANAANDREY

tema dragos pb

Jan 5th, 2022 (edited)
537
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include<cstring>
  3. using namespace std;
  4. #define VOWELS "aeiouAEIOU"
  5.  
  6. int main() {
  7.     char s[20];
  8.     cin >> s;
  9.     int n = strlen(VOWELS);
  10.     for (int i = 0; i < n; i++) {
  11.         if (!strchr(s, VOWELS[i])) {
  12.             putchar(VOWELS[i]);
  13.         }
  14.     }
  15.     return 0;
  16. }
  17.  
  18.  
Add Comment
Please, Sign In to add comment