function a=areatriangle(b,c,d) % computes the are of the triangle with the sides b,c,d p = (b+c+d)/2; a = sqrt(p*(p-b)*(p-c)*(p-d)); fprintf('The area of the triangle (%f,%f,%f) is %f', b,c,d,a);