count up digits by

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char v[];

main ()
{
\x09gets (v);

\x09int l = strlen (v), i, j;
\x09char *a = malloc (l);

\x09memset (a, 48, l);
\x09puts (a);

\x09for (i = l; i >= 0; i--)
\x09\x09for (j = 49; j <= v[i]; j++) {
\x09\x09\x09a[i] = j;
\x09\x09\x09puts (a);
\x09\x09}

\x09return 0;
}

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

download

return to the top page