#include <cstdlib>
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
float x1, y1, x2, y2, x3, y3, a, b, c, O, P, s;
cout <<„Koordinate (x, y) prve tacke : „;
cin >>x1 >>y1;
cout << endl <<„Koordinate (x, y) druge tacke : „;
cin >>x2 >>y2;
cout << endl <<„Koordinate (x, y) trece tacke : „;
cin >>x3 >>y3;
a=sqrt((x2-x1)*(x2-x1)+ (y2-y1)*(y2-y1));
b=sqrt((x3-x2)*(x3-x2)+ (y3-y2)*(y3-y2));
c=sqrt((x3-x1)*(x3-x1)+ (y3-y1)*(y3-y1));
O=a+b+c;
s=O/2;
P=sqrt(s*(s-a)*(s-b)*(s-c));
cout<<endl;
cout << „Obim: “ << O << endl;
cout<<endl;
cout << „Povrsina: “ << P << endl;
return 0;