fork download
  1. #include <stdio.h>
  2.  
  3. int main(void) {
  4. int x;
  5. scanf("%d" , &x);
  6. if(x!=0){
  7. if(x>0){
  8. printf("Es positivo", x);
  9. }else{
  10. printf("Es negativo", x);
  11. }
  12. } else{
  13. printf("Es cero", x);
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 4204KB
stdin
Standard input is empty
stdout
Es cero