// Solution of Assignment 5
#include <iostream>
#include <string>
using namespace std;
int main()
{
        char repeat = 'Y';
	int i, n, count;
	string s, t;
	while (toupper(repeat) == 'Y')
	{
		system("cls");
		cout << "Enter a string: ";
		cin >> s;
		n = s.size();
		t = "";
		count = 0;
		for (i = 0; i < n; i++)
			if (toupper(s[i]) == 'A'
				|| toupper(s[i]) == 'E'
				|| toupper(s[i]) == 'I'
				|| toupper(s[i]) == 'O'
				|| toupper(s[i]) == 'A')
				count++;
			else
				t = t + s[i];
			
		cout << "\n\n";
		cout << count << " vowels removed from "<< s << ". \n";
		cout << "After removing the vowels, the string becomes:\n";
		cout << t << "\n\n";

		cout << "\nContinue (if yes, press y or Y, else "
			<< "press any other key)? ";
		cin >> repeat;
	}

        return 0;
}
