Untitled
Anonymous
plain_text
11/30/2023 10:10 AM
288 B
12
Indexable
#include <iostream>
#include <cmath>
using namespace std;
int main() {
double a, b, c, p, s;
cin >> a >> b >> c;
p = (a + b + c) / 2;
s = sqrt(p * (p - a) * (p - b) * (p - c));
cout << s << endl;
}Editor is loading...
Leave a Comment