题解 | #创建动态数组#
创建动态数组
https://www.nowcoder.com/practice/218b577112a24c23a41bdc01f28c18ac
#include <iostream> using namespace std; int main() { int n; cin >> n; for(int i = n;i<=2*n-1;i++) { cout<<i<<' '; } // write your code here...... return 0; }
创建动态数组
https://www.nowcoder.com/practice/218b577112a24c23a41bdc01f28c18ac
#include <iostream> using namespace std; int main() { int n; cin >> n; for(int i = n;i<=2*n-1;i++) { cout<<i<<' '; } // write your code here...... return 0; }
相关推荐