Question: Your job is to write a recursive method that prints a large diamond made of small stars (). The size of the diamond will

Your job is to write a recursive method that prints a large

 

Your job is to write a recursive method that prints a large diamond made of small stars (""). The size of the diamond will be determined from the maximum width of the diamond, which is given in the input file and is guaranteed to be odd. Example for a diamond with max width of n = 7: * * ***Hint: you CAN use a for loop to draw one, single row of the diamond. But you need recursion to call the method on the "smaller" version of the problem.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!