直接看代码就完了
using namespace std; int x; int main() { while(true) { cin>>x; if(!x)break; for(int i=1;i<=x;i++)cout<<i<<” “; cout<<endl; } return 0; }
你是谁??
???
你是谁??
???