Question: Write a program which prompts the user to enter a number of rows, and prints a hollow square star pattern with 2 diagonals. Note:
Write a program which prompts the user to enter a number of rows, and prints a hollow square star pattern with 2 diagonals. Note: you can assume that the integer will always be > 1 and will be an odd number. For example: Input Result 5 9 Enter number of rows: 5 ***** ** ** * * * ** ** ***** Enter number of rows: 9 ** ** ** * ** ** ** ** *********
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
