Hey Skip,

I'm sure that there are more elegant ways but, here goes.

   fun=: 3 : 0
​'a b c'=. y
​(a*b*10000)+(a*c*100)+(a*b+c)-b
​)
   fun 5 3 2
151022
   fun 9 2 4
183652
   fun 8 6 3
482466
   fun 5 4 5
202541
   fun 7 2 5
143547


Cheers, bob


On Dec 13, 2014, at 3:17 PM, Skip Cave <[email protected]> wrote:

> Oops! printing mistake...
> 
>   fun 5 3 2
> 151022
>   fun 9 2 4
> 183652
> 
>   fun 8 6 3
> 
> 482466
> 
>   fun 5 4 5
> 
> 202541
> 
>   fun 7 2 5
> 
> ???
> 
> 
> 
> Skip Cave
> Cave Consulting LLC
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to