Non Decreasing Digits by *yuko*

program-id.y.data division.working-storage section.
1 i pic 99.
1 n pic 9(36) value 10.procedure division.a.add 1 to i
if i<64 compute n=n+n*9/(1+i)display i(2- 0^(9/i):)" "n(36- function log10(n):)go a.display"64 10".

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

download

return to the top page