[MWForum]Re: MIA, Ask an Expert Question

Daniel Ajoy mwforum@lists.mathcats.com
Wed, 11 Feb 2004 10:56:48 -0500


On 11 Feb 2004 at 8:17, askanexpert@openworldlearning.org wrote:

> from: "jayne" jayne.harvey27@ntlworld.com
> date: Wed, 11 Feb 2004 8:17:26 -0700
> 
> how can i repeat a square within a square making it smaller each time

Here's a way. Do you notice a pattern?

to all_of_them
 pd square0
 pu fd 10 rt 90 fd 10 lt 90

 pd square1
 pu fd 10 rt 90 fd 10 lt 90

 pd square2
 pu fd 10 rt 90 fd 10 lt 90
end

to square0
 repeat 4 [fd 200 rt 90]
end

to square1
 repeat 4 [fd 180 rt 90]
end

to square2
 repeat 4 [fd 160 rt 90]
end


Daniel
OpenWorld Learning