a program to find the lenght of the triangle