float x, y;
cout << "Input x: "; cin >> x;
cout << "Input y: "; cin >> y;
if(x >= -2 && x <= 0 && y <= 2 - x && y >= x * x ||
x > 0 && x <= 2 && y <= 2 - x && y >= 0)
{
cout << "point enters area";
}
else
cout << "point does not enter the area";
float x, y;
cout << "Input x: "; cin >> x;
cout << "Input y: "; cin >> y;
if(x >= -2 && x <= 0 && y <= 2 - x && y >= x * x ||
x > 0 && x <= 2 && y <= 2 - x && y >= 0)
{
cout << "point enters area";
}
else
{
cout << "point does not enter the area";
}