影子论坛

发新帖

sign(x)

隔黑白键空好音 2022-5-10 230

include <studio.h>

int sign(int x){
if(x>0)return 1;
else if(x==0) return 0;
else return -1;
}
int main(){
int x=0;
scanf(“%d”,&x);
printf(“sign(%d)=%dn”,x,sign(x));

return 0;
}

附件列表(1)

登陆可见附件内容.

最新回复 (0)
返回
发新帖
隔黑白键空好音
主题数
5
帖子数
9
注册排名
506

Processed Time:0.23786211013794