int x[10]; for(int i =0;i<10;i) { scanf(“%d”,&x[i]); } for(int i =0;i<10;i) { if(x[i]<=0)x[i] = 1; printf(“X[%d] = %d\n”,i,x[i]); } return 0;
//printf("X[%d] = %d\n",i,x[i]);注意题干