标签:
#include<stdio.h>
main()
{
int x,y;
scanf("%d",&x);
if(x>0)y=1;
else {if(x<0)y=-1; else y=0;}
printf("%d",y);
}/*太感人了,上完课九点半了才回宿舍还写了一段,没写完,要断电了!!!*/
2015.10.15night
原文地址:http://www.cnblogs.com/haogong10333/p/4883895.html