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