about | help | code help+videos | done | prefs |
Write a method that accepts parameters 'howMany' and 'ltr', then returns a string made up of 'howMany' copies of 'ltr'. For example, if 'howMany' is 6 and 'ltr' is the 'x' character, the method returns "xxxxx". Look at the test data for further examples. sep27_2016_APSLHL_makeLetters(5, "x") → "xxxxx" sep27_2016_APSLHL_makeLetters(2, "a") → "aa" sep27_2016_APSLHL_makeLetters(17, "w") → "wwwwwwwwwwwwwwwww" ...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: 290
Copyright Nick Parlante 2017 - privacy