finished exercise 1.12: printed a pascal's triangle