Write a program which aske the user to Enter a positve non-zero integer value. if the value enterd zero or negative print as error message and end the program; otherwise, use the integer to call a method displayPattern(n) which must display the following pattern:
1
1 2
1 2 3
......
......
1 2 3 4 5 .... n