也凑个热闹。
 程序代码:
程序代码:
	
	
			 程序代码:
程序代码:#include <stdio.h>
int cal(int a)
{
    static int d = 0;
    int t;
    if(a <= 0) return 1;
    if(a % 10 < (9 - d)) return a + 1;
    d++;
    t = cal(a / 10);
    d--;
    return t * 10 + t % 10 + 1;
}
int main()
{
    int i;
    for(i = cal(0); i < 1000000000; i = cal(i))
        printf("%10d", i);
    return 0;
}
										
					
	
重剑无锋,大巧不工



 
											







 
	    

 
	

