Question: Print the following for any positive integer n. Use an input statement to allow the user to enter the value for n and then print

Print the following for any positive integer n. Use an input statement to allow the user to enter the value for n and then print the properly sized box.

E.g. n = 3

1 3 5 5 3 1

3 5 5 3

5 5

5 5

3 5 5 3

1 3 5 5 3 1

E.g. n = 5

1 3 5 7 9 9 7 5 3 1

3 5 7 9 9 7 5 3

5 7 9 9 7 5

7 9 9 7

9 9

9 9

7 9 9 7

5 7 9 9 7 5

3 5 7 9 9 7 5 3

1 3 5 7 9 9 7 5 3 1

Don't worry about handling the spacing for multi-digit numbers. use python 3.6 and pycharm to solve this problrm.

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 Databases Questions!