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 5: Pen Up, Pen Down

Age 7 to 16
Challenge Level Yellow star
  • Problem

First Forward Into Logo
Previous: FF4

This article introduces the idea of a procedure. Procedures allow you to save instructions in LOGO, creating primitives of your own, which you can use elsewhere. Once you have "taught " LOGO what the word "PATTERN" means - it will remember what to do whenever you type in "PATTERN". Providing you save your procedure at the end of you session you can call it up again the next time you wish to do some work.


Consider the following procedure:
TO PATTERN
REPEAT 12 [PU FD 60 PD REPEAT 4 [FD 45 RT 90]PU BK 60 LT 30]
END

What do you think is happening?

The command PU means Pen Up and PD means Pen Down.

Try tracing out the instructions step by step:
* You have something to do - 12 times!
* In doing that something you have to repeat something else 4 times!
Strange ...

Type in the procedure and run it?
ring of squares
Were you right?

Now, try changing different parts of the procedure. Can you anticipate what is going to happen to your diagram in each case?

Next: FF6
 

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