写出已知函数y={1 (x>0) ,0 (x=0) ,-1 (x
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/24 20:21:25
写出已知函数y={1(x>0),0(x=0),-1(x写出已知函数y={1(x>0),0(x=0),-1(x写出已知函数y={1(x>0),0(x=0),-1(xintfun(intx){ inty;
写出已知函数y={1 (x>0) ,0 (x=0) ,-1 (x
写出已知函数y={1 (x>0) ,0 (x=0) ,-1 (x
写出已知函数y={1 (x>0) ,0 (x=0) ,-1 (x
int fun(int x)
{
int y;
if(x>0)
y=1;
else if(x=0)
y=0;
else if(x