All pastes #718075 Raw Edit

Something

public text v1 · immutable
#718075 ·published 2007-09-28 02:36 UTC
rendered paste body
#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;
}