#define _USE_MATH_DEFINES
#include <stdio.h>
#include <math.h>
int main()
{
float xa, xb, ya, yb, dist, temp;
printf("Dati xA si yA: ");
scanf("%f %f", &xa, &ya);
printf("\nDati xB si yB: ");
scanf("%f %f", &xb, &yb);
dist = sqrt(pow((xa - xb), 2) + pow((ya - yb), 2));
printf("\nDistanta este: %f", dist);
temp = 3 * dist;
printf("\nPerimetrul este: %f", temp);
temp = (dist * dist * sqrt(3)) / 4;
printf("\nAria este: %f", temp);
temp = M_PI * dist;
printf("\nCircumferinta cercului este: %f", temp);
temp = (M_PI * dist * dist) / 4;
printf("\nAria cercului este: %f", temp);
getch();
return 0;
}