Activity 05.04: Replacing Label and Goto

Goal: Change the code so that a while loop is used, instead of label and goto.

Success Criteria:

  • The micro:bit runs the program with no errors
  • The program displays the acceleration of the micro:bit every 0.25 seconds
  • The program doesn’t end until you press “stop”
  • There is no label or goto in the code


  • Use the documentation
  • Replace the label and goto loop with while loop
Scroll to Top