Loops within Loops

 

Image courtesy Don Lebow, http://www.aloha.net/~mdon/info.htm

If each shell needs a loop of p steps to create the image, within an outer loop represented by the spiral of r steps, how many steps are needed to create the whole image?


CS1104 Main Page

Last updated 2001/01/31
© J.A.N. Lee, 2001.