问答题

简答题 输入一个整数,输出其符号(若x>=0,输出1,若x
【参考答案】

main()
{int x fx;
scanf("%d",&x);
if(x<0)fx=-1;
else fx=1;
printf("%d",fx);

热门 试题

问答题
问答题