Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
201 B
2
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