Explicație:
#include <iostream>
#include <cmath>
#include <iomanip>
using namespace std;
int a,b,c,p,s;
int main ()
{
cin>>a>>b>>c;
p=(a+b+c)/2;
s=sqrt(p*(p-a)*(p-b)*(p-c));
cout<<fixed<<setprecision(2)<<2*s/a;
cout<<fixed<<setprecision(2)<<2*s/b;
cout<<fixed<<setprecision(2)<<2*s/c;
return 0;
}