Untitled

 avatar
user_0563559
c_cpp
7 months ago
199 B
2
Indexable
Never
#include <iostream>
#include <math.h>.
using namespace std;

int main()
{
	int a, b;
	double b2, S;

	cin >> a >> b;

	b2 = (a * a) - (b * b);

	S = (sqrt(b2) * b) / 2;

	cout << S;
}
Leave a Comment