Adding triangle.c