#include <iostream>
#include <math.h>
using namespace std;
int main() {
int ab, bc, ac;
cout << "https://brainly.ro/tema/7138321" << endl;
cout << "LATURA AB: "; cin >> ab;
cout << "LATURA BC: "; cin >> bc;
cout << "LATURA AC: "; cin >> ac;
double s = (ab + bc + ac)/2;
cout << "SEMIPERIMETRUL ESTE EGAL CU: " << s << endl;
double p = s*(s-ab)*(p-bc)*(p-ac);
double r = sqrt(p);
cout << "ARIA ESTE EGALA CU: " << r << endl;
}