Printing numbers in a pyramid pattern