Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  asdasdd
Language: C/C++
Code:
#include <stdlib.h>
#include <stdio.h>

int main()

{
int x;
printf("Digite um valor: ");
scanf("%d",&x);
     
     
     if (x == 0);
          printf("0");
     if (x >= 1);
          printf("1"); 
     if (x <= -1);
          printf("-1");
     return 0;
}
          
          
Comments: