Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
161 B
2
Indexable
Never
#include <iostream>
using namespace std;

int main()
{
	float a, b, c, k = 0;
	cin >> a >> c;
	b = sqrt(c * c - a * a);
	k = 0.5 * b * a;
	cout << k;
}
Leave a Comment