How do i make this code count the vowels in a word and loop it
Code:#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { string word; cout<<"Enter a Word\n"; cin>>word; int y=0; if (word =="a"){ cout<<y+1; } else if (word=="e"){ cout<<y+1; } else if (word=="i"){ cout<<y+1; } else if (word=="u"){ cout<<y+1; } else if (word=="o"){ cout<<y+1; } system("PAUSE"); return EXIT_SUCCESS; }