0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-05 02:06:27 +00:00
OI-codes/AcWing/737/737.cpp

15 lines
210 B
C++
Raw Normal View History

#include <bits/stdc++.h>
using namespace std;
int x;
int main() {
for (int i = 0; i < 10; i++) {
cin >> x;
cout << "X[" << i << "] = " << (x <= 0 ? 1 : x) << endl;
}
return 0;
}