Code Sketch


sangeeta_Activity1
By: Sangeeta Salgaonkar
clear()
showAxes()
setPenColor(blue)
setPenThickness(10)

def plus(side: Int, size: Int) =
    {
        if (side <= 0) {}
        else {
            repeat(side) {
                forward(size)
                hop(-size)
                right()
            }

        }

    }

plus(4, 100)