mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-18 04:32:00 +00:00
15 lines
210 B
C++
15 lines
210 B
C++
|
#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;
|
||
|
}
|