eerer

来源:互联网 发布:生命起源知乎 编辑:程序博客网 时间:2024/04/30 22:16

#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;
}


 

0 0
原创粉丝点击