Figure 12-20 earlier in this chapter shows the output of a program that displays any number of

Question:

Figure 12-20 earlier in this chapter shows the output of a program that displays any number of Os running diagonally from top left to bottom right. Now, write a program that prompts the user for a number of lines to display, and then use a recursive method to display Os from top right to bottom left. Figure 12-25 shows a sample execution. Save the program as OppositeDiagonal.java.


Data from in  Figure 12-20


Data from in  Figure 12-25

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

Step by Step Answer:

Related Book For  answer-question

Java Programming

ISBN: 9780357673423

10th Edition

Authors: Joyce Farrell

Question Posted: