C++ 代码 `#include [HTML_REMOVED]
using namespace std;
int main()
{
int n; while(cin>>n,n) { for(int i=1;i<=n;i++) printf("%d%c",i," \n"[i==n]); }
}`