Quick actions

cmd+k|ctrl+k

Navigation

Languages

Задания 79.R

Snippet info

Language

Cpp

Visibility

public

Author

romanov

Created

2018-10-21T18:12:09Z

Updated

2018-10-22T19:22:54Z

#include <iostream>
#include <cmath>
using namespace std;
 
int main()
{
    float a, b, c;
    cin >> a >> b >> c;
 
    a *= (a >= 0) ? a : pow(a, 3);
    b *= (b >= 0) ? b : pow(b, 3);
    c *= (c >= 0) ? c : pow(c, 3);
 
    cout << a << " " << b << " " << c;
    return 0;
}
INFO