I'm new here and I have an assignment about java that i'm not understand on how to do it.Here is the question:
Write a test program that read an integer n and call a method to display a pattern as follows:
1
2 1
3 2 1
4 3 2 1
...
n n-1 ... 3 2 1
The method header is
public static void displayPattern(int n)
SHINICHI 0 Newbie Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
NormR1 563 Posting Sage Team Colleague
radhakrishna.p 29 Posting Whiz in Training
jalpesh_007 -3 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.