Fun with Words

Step 5: If the command is "pig latin", print the word in pig Latin. The rules of pig Latin are:
  • If the word starts with a consonant, move it to the end
  • If the word starts with a vowel, leave it be
  • Finally, add "ay" to the end of the word
Last step Next step