Untitled

 avatar
unknown
c_cpp
2 years ago
229 B
3
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