count up digits by apprehensivebob

char v[];main(){gets(v);int l=strlen(v),i,j;char*a=malloc(l);memset(a,48,l);puts(a);for(i=l;i>=0;i--)for(j=49;j<=v[i];j++)a[i]=j,puts(a);}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page