Write a recursive method to produce a pattern of n lines of asterisks. The first line contains

Question:

Write a recursive method to produce a pattern of n lines of asterisks. The first line contains one asterisk, the next line contains two, and so on, up to the nth line, which contains n asterisks. Line number n+1 again contains n asterisks, the next line has n–1 asterisks, and so on, until line number 2n, which has just one asterisk.

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

Step by Step Answer:

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