Something
public text v1 · immutable#include<iostream>
using namespace std;
int main()
{
char word[11];
int x=0;
cin>>word;
switch(word[x])
{
case'a':case'e':case'i':case'o':case'u':case'y':
{
x=1;
break;
}
}
if(x=1)
word=word.substr(x,word.length()-x)+word.substr(0,x)+("ay");
else
word=word+"ay";
cout<<word<<endl;
return 0;
}