Quick actions

cmd+k|ctrl+k

Navigation

Languages

Lab_4

Snippet info

Language

Cpp

Visibility

public

Author

sergey

Created

2019-10-13T11:19:05Z

Updated

2019-10-13T11:19:05Z

#include <iostream>
#include <cmath>
using namespace std;
 
int main() {
    double a,b,c;
    
    cin >>a>>b>>c;
   if((a<b) && (b<c)) {a*=2;   b*=2;    c*=2;} 
   else {a = abs(a);
        b = abs(b);
        c = abs(c);
    }
    cout << "a = " << a << endl;
    cout << "b = " << b << endl;
    cout << "c = " << c << endl;
}
INFO