fork download
  1. #include <stdio.h>
  2. int main() {
  3. int num1;
  4. printf("Introduzca el número: ");
  5. scanf("%d" , &num1);
  6. if(num1<0){
  7. printf("\n El número es negativo: %d" , num1);
  8. }
  9.  
  10. return 0;
  11. }
Success #stdin #stdout 0s 5320KB
stdin
1
-1
stdout
Introduzca el número: