fork download
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5. int i = 0, j, arr[100], n, x;
  6. while(i < 10 && scanf("%d", &arr[i]) == 1)
  7. {
  8. i++;
  9. }
  10.  
  11. for(j = 0; j < i; j++)
  12. {
  13. printf("%d\n", arr[j]);
  14. }
  15. return 0;
  16. }
  17.  
Success #stdin #stdout 0s 9432KB
stdin
1 2 3 4 5 6 7 8 9 10
stdout
1
2
3
4
5
6
7
8
9
10