mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-08 13:38:48 +00:00
709. 奇数
https://www.acwing.com/problem/content/submission/code_detail/6862921/
This commit is contained in:
parent
aa714607b4
commit
a7cc8496ae
12
AcWing/709/709.cpp
Normal file
12
AcWing/709/709.cpp
Normal file
@ -0,0 +1,12 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
int x;
|
||||
cin >> x;
|
||||
for (int i = 1; i <= x; i++) {
|
||||
if (i & 1) cout << i << endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user