fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main () {
  4. int numero;
  5. printf("Introduce un nĂºmero entero: ");
  6. scanf(" %d ", &numero);
  7.  
  8. if (numero < 0) {
  9. printf("Resultado: %d", numero);
  10. }
  11. else {
  12.  
  13. }
  14.  
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0.01s 5320KB
stdin
5
stdout
Introduce un número entero: