Number-Pattern-4 example : for height=4, the pattern is, 1 2 3 4 5 6 7 8 9 10 You can also view other Patterns Here