Untitled

mail@pastecode.io avatar
unknown
c_cpp
7 months ago
183 B
0
Indexable
Never
#include <iostream>
#include <math.h>

int main()
{
	double a = 0;
	double b = 0;
	double c = 0;

	std::cin >> a >> c;

	b = sqrt(c*c - a*a);

	std::cout << a * b / 2;
}
Leave a Comment