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