Untitled

 avatar
unknown
c_cpp
2 years ago
183 B
2
Indexable
#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;
}
Editor is loading...
Leave a Comment