```#include[HTML_REMOVED]
int main()
{
int a[10] ={0};
int x,i=0;
while(i < 10)
{
scanf("%d", &x);
if (x > 0) a[i] = x;
else a[i] = 1;
i ++;
}
for(int i = 0;i <10;i ++)
printf("X[%d] = %d\n", i,a[i]);
return 0;
}
```