fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. float numero;
  5.  
  6. int main() {
  7. printf("Introduce un numero");
  8. scanf("%f", &numero);
  9.  
  10. if(numero <0) {
  11. printf("\n Es un numero negativo");
  12. printf("\n");
  13.  
  14. } else {
  15. printf("\ Es un numero positivo");
  16. printf("\n");
  17. }
  18. system ("pause");
  19. // your code goes here
  20. return 0;
  21. }
  22.  
Success #stdin #stdout #stderr 0s 5316KB
stdin

4



stdout
Introduce un numero Es un numero positivo
stderr
sh: 1: pause: not found