Question: Write a method to display a pattern as follows: The method header is public static void displayPattern(int n). 2 1 3 2 1 n n-1
Write a method to display a pattern as follows:
The method header is public static void displayPattern(int n).
2 1 3 2 1 n n-1 ... 3 2 1
Step by Step Solution
3.35 Rating (161 Votes )
There are 3 Steps involved in it
Method Code Define the met... View full answer
Get step-by-step solutions from verified subject matter experts
