Untitled

Anonymous
c_cpp
11/29/2023 2:42 PM
308 B
19
Indexable
#include <iostream>
#include <cmath>

using namespace std;

int main() {
	double a, b, c;
	cin >> a >> b >> c;

	double p = (a + b + c) / 2;

	double s = sqrt(p * (p - a) * (p - b) * (p - c));

	cout << s << endl;
}
Editor is loading...
Leave a Comment