Quick actions

cmd+k|ctrl+k

Navigation

Languages

Вариант 45

Snippet info

Language

Cpp

Visibility

public

Author

sergey

Created

2019-09-16T06:24:09Z

Updated

2019-09-16T06:24:09Z

#include <iostream>
#include <cmath>
using namespace std;

int main() {
    double x, k, Z;
    cout << "Вариант 45" << endl;
    cin >> x;
    k = fabs(x);
    Z = fabs (1 - k);
    cout << "Z = " << Z << endl;
    return 0;
}
INFO