Question: (18 points) Write a complete program that reads in an odd size N, and draws the standard diamond of asterisks, but with the following variation:
(18 points) Write a complete program that reads in an odd size N, and draws the standard diamond of asterisks, but with the following variation: on the central VERTICAL spine, the odd lines print an "S". the even lines print a "-", as shown in the figures. Sample One INPUT: 7 OUTPUT: S *-* ***** **S** S Sample Two INPUT: 9 OUTPUT: S *-* **S** ****S**** **S** S
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
