c4-5-1.c 167 B

12345678910111213141516
  1. #include <stdio.h>
  2. int main()
  3. {
  4. int x,y;
  5. scanf("%d",&x);
  6. if(x<0)
  7. y=-1;
  8. else
  9. if(x==0) y=0;
  10. else y=1;
  11. printf("x=%d,y=%d\n",x,y);
  12. return 0;
  13. }