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)
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment