CPP
cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include <string.h>
using namespace std;
int main() {
char word[12];
int len;
cin.getline(word,12);
len=strlen(word );
for(int i=0;i<len;i++)
{
if(word [i]=='a'||word[i]=='e'||word[i]=='i'||word[i]=='u'||word[i]=='o')
{
word [i]=NULL;
}
cout <<word[i];
}
return 0;
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run