Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
205 B
1
Indexable
Never
//домашка
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    double a, b, c;
    cin >> a >> b;
    c = sqrt(b * b - a * a);
    cout << c * a / 2;
    return 0;
}
Leave a Comment