mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-03 19:16:27 +00:00
721. 递增序列
https://www.acwing.com/problem/content/submission/code_detail/6826700/
This commit is contained in:
parent
da3e3af625
commit
34d225bd06
15
AcWing/721/721.cpp
Normal file
15
AcWing/721/721.cpp
Normal file
@ -0,0 +1,15 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int n;
|
||||
|
||||
int main() {
|
||||
while (cin >> n, n) {
|
||||
for (int i = 1; i <= n; i++) {
|
||||
cout << i << ' ';
|
||||
}
|
||||
cout << endl;
|
||||
}
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user