about | help | code help+videos | done | prefs |
Write a method that returns the string 'str' but with 'num' copies of "*" at the front and end of the string. Look at the test data for examples. test2020_10_15_APP1SLHL_fancyString("My car has four tires.", 7) → "*******My car has four tires.*******" test2020_10_15_APP1SLHL_fancyString("My motorcycle needs a rest...", 1) → "*My motorcycle needs a rest...*" test2020_10_15_APP1SLHL_fancyString("...because it is two tired!", 2) → "**...because it is two tired!**" ...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: 220
Copyright Nick Parlante 2017 - privacy