Turtle Diophantine

If you spend exactly 920 pesos, how many pizzas can you buy at @160 and @120
http://en.wikipedia.org/wiki/Diophantine_equation#Linear_Diophantine_equations
http://wiki.sugarlabs.org/go/File:Turtle_Blocks_Activity_Diophantine.ta
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: olpc, Sugar, TurtleBlocks
2 Comments:
Did you see these other two solutions:
http://wiki.laptop.org/go/Aplicacion_Problema_de_Pizzas#TortugArte
http://wiki.laptop.org/go/File:TurtleArtPizza.jpg
Does yours work ok with:
small $11
large $17
total $1000
Thanks Blank. I have replied in the blog above
Post a Comment
<< Home