Saturday, September 25, 2010

Turtle Diophantine

If you spend exactly 920 pesos, how many pizzas can you buy at @160 and @120

Update 26 September
Blank asks Does yours work ok with:

small $11
large $17
total $1000

Thanks for the alternate solution. Yes, my solution works for all (positive) integers. It uses repeat until rather than repeat 10 in the solution you supplied. If there are a large number of solutions, they will print off screen though.

en espaƱol in Spanish

Labels: , ,


Blogger Blank said...

Did you see these other two solutions:

Does yours work ok with:

small $11
large $17
total $1000

Sunday, September 26, 2010 3:05:00 AM  
Blogger Tony Forster said...

Thanks Blank. I have replied in the blog above

Sunday, September 26, 2010 7:15:00 AM  

Post a Comment

<< Home