Loop in Logo

Example: Loop in Logo

The repeat command in Logo acts like a loop.


	to
		octagon repeat 8 [fd 50 lt 45] 
	end
	octagon

	

Output:

image of octagon created in logo