#define p(x) printf("%i",x);i,y,h;f(x){ for(i=y=x;(i-=h)>=0;){ p(y--) h=floor(log10(y))+1; } if(i+=h) p(h=floor(y/pow(10,i))) p(x)} n;main(){ scanf("%i",&n); f(n);}
99
9998979695949392919089888786858483828180797877767574737271706968676665646362616059585756555453525150499
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!