#include <iostream>
#include <string>
using namespace std;
int main()
{
string word;
cin >> word;
int position = -1;
for (int i = 0; i < word.length(); i++)
{
char ch = word[i];
if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
{
position = i+1;
}
}
cout << "Position: " << position << endl;
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: