int main(){
int n;
printf("请输入一个整数:");
scanf("%d",&n);
int result=10;
for(int i=1;i<n;i++){
result*=10;
}
for(int i=1;i<result;i++){
if(i!=result-1){
printf("%d,",i);
}else{
printf("%d",i);
}
}
return 0;
}
标签:10,最大,int,scanf,打印,位数,printf,main,result
From: https://blog.51cto.com/u_16252224/7581384