Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
306 B
0
Indexable
Never
#include <vector>
using namespace std;
int main() {
    float P;
    cout << "Perimetr:";
    cin >> P;
    cout << "Sootnoshenie(a probel b probel c):";
    float a, b, c, x;
    cin >> a >> b >> c;
    x = float(P) / float((a + b + c));
    cout << a * x << ' ' << b * x << ' ' << c * x;

}