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