#include <stdio.h>

double triangle_area(double triangle[]) {
    // TODO
}

int main() {
    double t1[6] = {-1.0, 3.0, -3.0, -3.0, 2.0, 1.0};
    printf("Pole trojkata o wierzcholkach A=(%.1lf, %.1lf) B=(%.1lf, %.1lf) C=(%.1lf, %3.1lf) jest rowne %.1lf, (poprawny wynik to 11.0)\n",
           t1[0], t1[1], t1[2], t1[3], t1[4], t1[5], triangle_area(t1));

    double t2[6] = {0.0, 0.0, 10.0, 0.0, 0.0, 10.0};
    printf("Pole trojkata o wierzcholkach A=(%.1lf, %.1lf) B=(%.1lf, %.1lf) C=(%.1lf, %3.1lf) jest rowne %.1lf, (poprawny wynik to 50.0)\n",
           t2[0], t2[1], t2[2], t2[3], t2[4], t2[5], triangle_area(t2));

    double t3[6] = {0.0, 0.0, -10.0, 0.0, 0.0, -10.0};
    printf("Pole trojkata o wierzcholkach A=(%.1lf, %.1lf) B=(%.1lf, %.1lf) C=(%.1lf, %3.1lf) jest rowne %.1lf, (poprawny wynik to 50.0)\n",
           t3[0], t3[1], t3[2], t3[3], t3[4], t3[5], triangle_area(t3));

    double t4[6] = {-1.5, 2.0, 21.8, -13.0, 4.2, 0.5};
    printf("Pole trojkata o wierzcholkach A=(%.1lf, %.1lf) B=(%.1lf, %.1lf) C=(%.1lf, %3.1lf) jest rowne %.4lf, (poprawny wynik to 25.2750)\n",
           t4[0], t4[1], t4[2], t4[3], t4[4], t4[5], triangle_area(t4));

    return 0;
}