Write a method to display a pattern as follows: The method header is public static void displayPattern(int

Question:

Write a method to display a pattern as follows:

The method header is
public static void displayPattern(int n)
Write a test program that prompts the user to enter a number n and invokes displayPattern( n) to display the pattern.

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

Step by Step Answer:

Question Posted: