Skip over navigation
Cambridge University Faculty of Mathematics NRich logo
menu search
  • Teachers expand_more
    • Early years
    • Primary
    • Secondary
    • Post-16
    • Events
    • Professional development
  • Students expand_more
    • Primary
    • Secondary
    • Post-16
  • Parents expand_more
    • Early Years
    • Primary
    • Secondary
    • Post-16
  • Problem-Solving Schools
  • About NRICH expand_more
    • About us
    • Impact stories
    • Support us
    • Our funders
    • Contact us
  • search

Or search by topic

Number and algebra

  • The Number System and Place Value
  • Calculations and Numerical Methods
  • Fractions, Decimals, Percentages, Ratio and Proportion
  • Properties of Numbers
  • Patterns, Sequences and Structure
  • Algebraic expressions, equations and formulae
  • Coordinates, Functions and Graphs

Geometry and measure

  • Angles, Polygons, and Geometrical Proof
  • 3D Geometry, Shape and Space
  • Measuring and calculating with units
  • Transformations and constructions
  • Pythagoras and Trigonometry
  • Vectors and Matrices

Probability and statistics

  • Handling, Processing and Representing Data
  • Probability

Working mathematically

  • Thinking mathematically
  • Developing positive attitudes
  • Cross-curricular contexts

Advanced mathematics

  • Decision Mathematics and Combinatorics
  • Advanced Probability and Statistics
  • Mechanics
  • Calculus

For younger learners

  • Early Years Foundation Stage

First Forward Into Logo 6: Variables and Procedures

Age 11 to 18
Challenge Level Yellow star
  • Problem

First Forward Into Logo
Previous: FF5

In FF4 you investigated the instruction:

REPEAT 360 [FD 1 RT 1]

Hopefully you altered it as you saw fit and produced some exciting shapes. So it is timely to introduce you to the idea of a variable . As the word implies, a variable is something that varies, something that changes.

You may find the following a quicker way of drawing circles and circular patterns. It is called a procedure and has to be written in a particular way.

TO CIRCLE :CH
REPEAT 360 [ FD :CH RT 1]
END

Notice how the procedure is set out:
First a title / a command TO CIRCLE
then the variable :CH
followed by the instructions REPEAT 360 [ FD :CH RT 1]
then a formal closing of the procedure END

N.B. the variable, :CH could have been any letter or letters that you wish!


Now experiment with the procedure:

CIRCLE 3
CIRCLE 6
CIRCLE -3
CIRCLE 9
circles

Building on this idea of a procedure we could have written:

TO CIRC :CH :ANG
REPEAT 360 [ FD :CH RT :ANG]
END

This is a procedure with two variables!

Can you anticipate what will change and what will happen now?
Can you see what is now possible?
Go on experiment! Try:
CIRC 3 3
CIRC 3 6
CIRC 3 30

What is happening?

Why not be bolder and try say:
CIRC 30 90
CIRC 30 45
CIRC 30 18 etc., etc.,
polygons

What do you notice?
What conclusions can you come to?
 

Next: FF7
 

Related Collections

  • Learning Logo

You may also like

First Forward Into Logo 1: Square Five

A Short introduction to using Logo. This is the first in a twelve part series.

LOGO Challenge 1 - Star Square

Can you use LOGO to create this star pattern made from squares. Only basic LOGO knowledge needed.

LOGO Challenge 5 - Patch

Using LOGO, can you construct elegant procedures that will draw this family of 'floor coverings'?

  • Tech help
  • Accessibility Statement
  • Sign up to our newsletter
  • Twitter X logo

The NRICH Project aims to enrich the mathematical experiences of all learners. To support this aim, members of the NRICH team work in a wide range of capacities, including providing professional development for teachers wishing to embed rich mathematical tasks into everyday classroom practice.

NRICH is part of the family of activities in the Millennium Mathematics Project.

University of Cambridge logo NRICH logo