Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
265 B
0
Indexable
Never
#include <iostream>
#include <cmath>

using namespace std;

int main() {
    int a, b, c;
    cin >> a >> b;
    int c2 = a * a + b * b;
    c = sqrt(c2);
    int s = (b + c) / 2;

    cout << "Dlina vtorogo kateta - " << c << endl;
    cout << "Ploshad - " << s;
}
Leave a Comment