fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. int main() {
  4. int a, b, c;
  5. cin >> a >> b >> c;
  6. double p = (double) (a+b+c)/2;
  7. double s = sqrt(p*(p-a)*(p-b)*(p-c));
  8. cout << fixed << setprecision(2) << s;
  9.  
  10. }
Success #stdin #stdout 0s 5292KB
stdin
67 37 96
stdout
911.92