Untitled
user_0563559
c_cpp
2 years ago
199 B
8
Indexable
#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;
}Editor is loading...
Leave a Comment