FIxed triangle.c