prints triangles in the console