1234567891011121314151617181920212223242526272829303132333435
#include <iostream> #include <string> using namespace std; int main() { string word; cout<<"Please enter your word:"; getline(cin,word); for(int n=0; n<word.length(); n++) { if(word[n]=='a') { word[n]='A'; } else if(word[n]=='e') {word[n]='E'; } else if(word[n]=='i') {word[n]='I'; } else if(word[n]=='o') {word[n]='O'; } else if(word[n]=='U') {word[n]='E'; } } cout <<word<<endl; return 0; }