Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
123731 李俊博 12for循环练习II C++ Accepted 7 MS 272 KB 314 2025-07-10 11:35:48

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; int main(){/** int i; for(i=1;i<=1000;i++){ cout<<i<<" "; } int i; for(i=7;i<=100;i=i+7){ cout<<i<<" "; } int i; for(i=998;i>=1;i=i-2){ cout<<i<<" "; }**/ int n,b; cin>>n>>b; for(int i=n;i<=b;i++){ cout<<i<<endl; } return 0; }