printing-pattern

Print a pattern of numbers from 1 to n as shown below. Each of the numbers is

separated by a single space.

3 3 3

3 2 3

3 3 3