Quick actions

cmd+k|ctrl+k

Navigation

Languages

Skalei

Snippet info

Language

Cpp

Visibility

public

Author

skalei.volodimir

Created

2018-10-09T19:56:10Z

Updated

2018-10-09T19:56:10Z

#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