struct point { double x; double y; }; struct triangle { struct point a; struct point b; struct point c; }; double distance(struct point a, struct point b); double area(struct triangle t);