Logomation Lesson 16

The function call can also have variables. The values stored in those variables are sent to the variables in the function definition.

Function drawSquare(side)

Repeat 4

Forward side

Right 90

// draw a square

size = 50

drawSquare(size)


On your own #16:

Five Concentric Circles
draw 5 concentric circles using the variable that changes, a function and a repeat loop

 

Fine, don't click here. See if I care. (reverse psychology is my friend)

Go back to the Lesson List page