Update triangle.c