Completed printTriangleType