```cpp
include[HTML_REMOVED]
using namespace std;
int main(){
int x=1,i;//或者用while(true)无限循环,if break 打断输入0;或while(cin>>x)
while(x!=0){
cin>>x;
if(x==0) break;
for(i=1;i<=x;i++){
cout<<i<<’ ‘;
}
cout<<endl;//在循环外换行,使循环内的每组数占一行
}
return 0;
}