using namespace std; int main(){ for(int i = 0; i < 10; i ++ ){ int x=0; cin >> x; printf(“X[%d] = %d\n”, i, x <= 0 ? 1 : x); } return 0;
}