Modify the application you wrote in Exercise 4.24 to read an odd number in the range 1

Question:

Modify the application you wrote in Exercise 4.24 to read an odd number in the range 1 to 19 to specify the number of rows in the diamond. Your program should then display a diamond of the appropriate size.

Exercise 4.24

Write an application that prints the following two dimensional matrix. Use for loops to minimize the number of output statements.

1 1 1 1 1 22222 3 3 3 3 3 4 4 4 4 4 5 5 5 5 5

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  answer-question

Java How To Program Late Objects Version

ISBN: 9780136123712

8th Edition

Authors: Paul Deitel, Deitel & Associates

Question Posted: