Skalei
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
int x;
double result;
cout << "Input your number" << endl;
cin >> x;
result = fabs(1-fabs(x));
cout << "Your result = " << result << endl;
}INFO