Dave Green

Dave Green

  • NA
  • 4
  • 8.7k

Recursive Function

Feb 14 2014 10:18 AM

Write a recursive function that returns a string and that takes 1 string parameter. Each invocation of the function should concatenate the string parameter to itself. So, if the string "duck" was passed in, it should return the string "duckduck".  The recursion should stop when the length of the string exceeds 100.


Answers (1)