Skip to main content
CS Teaching Tips

Main navigation

  • Browse All Tips
  • Tags
  • 3D
  • About
  • Rate Tips
  • Tip Sheets

Direct students struggling with loops to write on paper what should happen, then have them determine the start, end, and update values.

More about this tip

Tags

  • Development Methods
  • Programming Concepts
External Source

Interview with Nick Melnyk

Other Tips By
Other Tips By Nick Melnyk

Similar tips

Loosen your requirements for style sometimes to keep students motivated to write programs, this is especially relevant when students come from an engineering background.
Tell students they have to believe that some things just work before they will understand why it works because they need exposure to a lot of material before some concepts make sense individually.
Misconception: The update in the index in a for loop (i.e., the third part of the for loop control statement) happens after the all the steps inside of the loop have happened.

For more information or to report a bug, contact us at admin@csteachingtips.org. Built with Bootstrap. Powered by Drupal.

Privacy Policy