Code Snippets C

#include
int main(void)
{
int j;
printf("Enter a number: ");
scanf("%d", &j);
j = j > 0 ? 1: -1;
printf("j = %d", j);
return 0;
}