ACM (TJU) : 2791


#include
#include

int main ()
{

int n;
bool flag;
char save;

scanf (“%d”, &n);

while ( n– ) {

char a [100];

scanf (“%s”, a);
int i = 0;

if ( a [i] == ‘a’ || a [i] == ‘e’ || a [i] == ‘i’ || a [i] == ‘o’ || a [i] == ‘u’ )
printf (“%scow\n”, a);

else {

save = a [i];
i = 1;
while ( i < strlen (a) ) printf ("%c", a [i++]); printf ("%cow\n", save); } } return 0; } [/sourcecode]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s