Code Sketch
Triangle
Category: Math
clear()
showAxes()
//To draw a triangle with repeat command in I quadrant
right()
repeat(3) {
forward(100)
left(120)
}
//To draw a triangle with repeat command in II quadrant
//left()
//repeat(3) {
// forward(100)
// right(120)
//}
//To draw a triangle with repeat command in III quadrant
//left()
//repeat(3) {
// forward(100)
// left(120)
//}
//To draw a triangle with repeat command in IV quadrant
//right()
//repeat(3) {
// forward(100)
// right(120)
//}
//To draw a triangle at the Centre with repeat command
//setSpeed(slow)
//right()
//hop(50)
//
//repeat(3) {
// left(120)
// forward(100)
//}
//To draw triangle without repeat command
// forward(100)
// left(120)
//
// forward(100)
// left(120)
//
// forward(100)
// left(120)