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