#include
int main()
{
int x,y;
printf("输入:");
scanf("%d",&x);
if(x<0)
y=-1;
if(x==0)
y=0;
else
y=1;
printf("输出:%d",y);
return 0;
}
#include
void main() { int x,y;
scanf("%d",&x);
if ( x<0 ) y=-1;
else if ( x==0 ) y=0;
else y=1;
printf("%d\n",y);
}
太难了!呜呜