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