this "solution" fails to handle many common cases:
- words that start w a vowel
the word "apple" given to your script outputs "appleyay" - not pig latin.
- a combination of consonants that lead up to the 1st vowel in a word
the word "crock" given to your script outputs "rockcay" - not pig latin.
you either don't understand the rules of pig latin, or, you do understand the rules of pig latin but are unable to make your script follow them.
this "solution" fails to handle many common cases:
the word "apple" given to your script outputs "appleyay" - not pig latin.
the word "crock" given to your script outputs "rockcay" - not pig latin.
you either don't understand the rules of pig latin, or, you do understand the rules of pig latin but are unable to make your script follow them.