Examine this pattern of asterisks and blanks, and write a recursive method that can generate exactly this

Question:

Examine this pattern of asterisks and blanks, and write a recursive method that can generate exactly this pattern:

* * * * * * *** * * * ** * ***

With recursive thinking, the method needs only seven or eight lines of code (including two recursive calls). How is this pattern a fractal? Your method should also be capable of producing larger or smaller patterns of the same variety.

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: