# include "stdio.h"
void main()
{float x,y;
printf("please enter the number:\n");
scanf("%f\n",&x);
if (x<0) y=-1;
else if (x=0) y=0;
else y=1;
printf("%f\n",y);
}
# include "stdio.h"
void main()
{float x;
int y;
printf("please enter the number:\n");
scanf("%f",&x);
if (x<0)
y=-1;
else if (x=0) y=0;
else y=1;
printf("%d",y);
}
# include "stdio.h"
void main()
{float x;
int y;
printf("please enter the number:\n");
scanf("%f",&x);
if (x<0)
y=-1;
else if (!x) y=0;
else y=1;
printf("%d",y);
}