Untitled

 avatar
user_0563559
c_cpp
7 months ago
210 B
0
Indexable
Never
#include <iostream>
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;
}
Leave a Comment