good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Re: Re: Re: (Golf) Kaprekar's Processby MeowChow (Vicar) |
on Jun 17, 2001 at 00:11 UTC ( [id://89097]=note: print w/replies, xml ) | Need Help?? |
That's what the sprintf is there for. It formats a two-digit result into a three-digit string, eg. 099. After sorting and reversal, you get 990 - 099.
MeowChow s aamecha.s a..a\u$&owag.print
In Section
Meditations
|
|