#include <iostream>
#include <string>
#include <cctype>
using namespace std;

int main()
{
   string word;
   cin >> word;
   bool found = false;
   int position = 0;
   string ch;
   while (position < word.length())
   {
      ch = word.substr(position, 1);
      if (ch == "a" || ch == "e" || ch == "i" || ch == "o" || ch == "u" ||
          ch == "A" || ch == "E" || ch == "I" || ch == "O" || ch == "U")
      { 
         found = true;
         break;
      }
      else 
      { 
         position++;
      }
   }
   if (found)
   {
      cout << "First vowel: " << ch << endl;
      cout << "Position: " << position+1 << endl;
   }
   else
   {
      cout << "No vowels" << endl;
   }

   return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: