Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: (Golf) Giving Change

by bikeNomad (Priest)
on Jun 12, 2001 at 04:27 UTC ( #87691=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub c{($t,$p,@r)=@_;while($v=pop@$p and$t>0)
    {while($t>=$v){push@r,$v;$t=sprintf"%f",$t-$v}}@r}
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://87691]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2015-08-31 13:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (357 votes), past polls