Microsoft Small Basic

Program Listing:
Embed this in your website
'Recipe For Drawing an Triangle Shell
' show turtle
' the number of triangles drawn will be 60
' repeat the following 60 times
  ' choose a random color for the pen
  ' increase the length of side of a triangle by 4
  ' draw an triangle
  ' turn the turtle 1/60th of 360*


'Recipe For Drawing an Triangle

' triangle’ have 3 sides
' repeat the following 3 times
  ' move the turtle the length of a side
  ' turn the turtle 1/3th of 360*


Copyright (c) Microsoft Corporation. All rights reserved.