fork(1) download
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. int number;
  6. char nl = 0;
  7.  
  8. while ( scanf("%d%c", &number, &nl) != EOF)
  9. {
  10. printf("%d \n", number);
  11.  
  12. if (nl == '\n')
  13. break;
  14. }
  15. }
Success #stdin #stdout 0s 4384KB
stdin
2 3 3 2 
stdout
2 
3 
3 
2