#ilnclude <cmath>
#ilnclude <iostream>
using namespace std;
int main()
{
double x,y;
if(x<2)
{
y=x;
}
else if(x>=2&&x<6)
{
y=x*x+1;
}
else if(x>=6&&x<10)
{
y=sqrt(x+1)
}
else
y=1.0/(x+1)
return 0;
}
#ilnclude <cmath>
#ilnclude <iostream>
using namespace std;
int main()
{
double x,y;
if(x<2)
{
y=x;
}
else if(x>=2&&x<6)
{
y=x*x+1;
}
else if(x>=6&&x<10)
{
y=sqrt(x+1)
}
else
y=1.0/(x+1)
return 0;
}