fork(1) download
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4.  
  5.  
  6. main () {
  7. int Km, metros;
  8. printf("Introduce el número en Km: ");
  9. scanf("%d", &Km);
  10. metros=Km*1000;
  11. printf("\n El número en metros es: %d", metros);
  12. printf("\n");
  13. system("pause");
  14. }
Success #stdin #stdout #stderr 0s 5308KB
stdin
2








stdout
Introduce el número en Km: 
 El número en metros es: 2000
stderr
sh: 1: pause: not found