A friend sent this puzzle to me as a paper and pencil puzzle. I converted it to a J verb. See if you can write the fun verb yourself. Input is always three single-digit integers...
fun 5 3 2
151022
fun 9 2 4
183623
fun 8 6 3
482419
fun 5 4 5
202521
fun 7 2 5
???
Skip
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm
