[Cialug] Algorithm

Andrew at Work cialug@cialug.org
Fri, 14 Jan 2005 16:17:16 -0600


Here's one solution to that problem:

$pennies = $amt * 100
$nickles = 0
$dimes = 0
$quarters = 0

-Andrew V

Korver, Aaron wrote:

> What? Is this homework or something?
> 
>     -----Original Message-----
>     *From:* David Stout [mailto:ragbrai65@yahoo.com]
>     *Sent:* Friday, January 14, 2005 4:07 PM
>     *To:* cialug@cialug.org
>     *Subject:* [Cialug] Algorithm
> 
>     Without using logic just integer arithmetic what would the algorithm
>     be for finding how many quarters, dimes, nickles & penneys in .92.
> 
> 
>     David Stout
>     Business Forms Analyst & Student
> 
>     __________________________________________________
>     Do You Yahoo!?
>     Tired of spam? Yahoo! Mail has the best spam protection around
>     http://mail.yahoo.com
>