about | help | code help+videos | done | prefs |
An English word is translated into Pig Latin by the following rules: if the word starts with one or more consonants then they are moved to the end, and the letters "ay" are added to the end after the consonants. If the word starts with a vowel, then just add 'way' to the end. We will assume that 'y' is not a vowel. piglatin('pig') → 'igpay' piglatin('aardvark') → 'aardvarkway' piglatin('scram') → 'amscray' ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210 Post-solution available
Copyright Nick Parlante 2017 - privacy