Untitled

 avatar
unknown
plain_text
3 years ago
306 B
3
Indexable
#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;

}
Editor is loading...