//№18
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
double x;
double w;
double result;
double q;
cout << "x =";
cin >> x;
if ((x + 1 >= 0) & (x - 1 >= 0));
{
q = sin(sqrt(x + 1));
w = sin(sqrt(x - 1));
if (((q > 1) && (q < -1)) || ((w < -1) && (w > 1)))
{
cout << "значение sin не может быть больше 1 и меньше -1" << endl;
}
else
{
result = q - w;
cout << "Ответ " << result << endl;
}
return 0;
}
}