1
0

c4-5-2.c 174 B

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