//* multifile project example - main.c or main.cpp *

#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include "lib.h" int main() { double point1x, point1y, point2x, point2y, point3x, point3y; double d1, d2, d3, area; printf("Please enter the coordinates of the triangle vertices and press ENTER.\n"); scanf("%lf %lf %lf %lf %lf %lf", &point1x, &point1y, &point2x, &point2y, &point3x, &point3y); d1 = Distance_Between_Points(point1x, point1y, point2x, point2y); d2 = Distance_Between_Points(point3x, point3y, point2x, point2y); d3 = Distance_Between_Points(point1x, point1y, point3x, point3y); area = Area_of_Triangle(d1, d2, d3); printf("The area of the triangle is %.2lf\n", area); return(0); }