题目描述
递增序列
C++ 代码
#include<bits/stdc++.h>
using namespace std;
//int main(){
// int t;
// while(cin>>t&&t!=0){
// for(int i=1;i<=t;i++){
// cout<<i<<" ";
// }
// cout<<endl;
// }
// return 0;
//}
int main(){
int t;
while(scanf("%d",&t)&&t!=0){
for(int j=1;j<=t;j++)
printf("%d ",j);
printf("\n");
}
}