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  

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

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!