Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <ctype.h>
- using namespace std;
- int main() {
- char s[100];
- cin>>s;
- char s2[100];
- int index=0;
- for(int i=0;i<strlen(s);i++) {
- if (toupper(s[i])=='A' || toupper(s[i])== 'E' || toupper(s[i])=='I' || toupper(s[i])=='O' || toupper(s[i])=='U' ) {
- }else {
- s2[index]=s[i];
- index++;
- }
- }
- cout<<s2<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement