Advertisement
Josif_tepe

Untitled

Jan 27th, 2025
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.50 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <ctype.h>
  4. using namespace std;
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.    int main() {
  12.       char s[100];
  13.        cin>>s;
  14.        char s2[100];
  15.        int index=0;
  16.        for(int i=0;i<strlen(s);i++) {
  17.            if (toupper(s[i])=='A' || toupper(s[i])== 'E' || toupper(s[i])=='I' || toupper(s[i])=='O' || toupper(s[i])=='U'    ) {
  18.  
  19.  
  20.            }else {
  21.                s2[index]=s[i];
  22.                index++;
  23.            }
  24.        }
  25.        cout<<s2<<endl;
  26.    return 0;
  27. }
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement