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