Loop Review Questions and Exercises

From CompSciWiki
Jump to: navigation, search

COMP 1010 Home > Loops


Try these Program a Day Questions

While Loops

  1. Guess my Number
  2. Input Validation
  3. Count the Alphabet

For Loops

  1. Print Out the Alphabet
  2. Convert this While to a For

Nested Loops

  1. Print Powers of Two
  2. Oh Rocket Tree
  3. Clock Simulation
  4. Rainfall Averaging
  5. Computing Prime Numbers
  6. Print a Calendar
  7. Cash Register

Tougher Examples

  1. Break This Combination
  2. Top Secret
Previous Page: Running Totals and Sentinel Values Next Page: User Defined Methods

Template loop detected: Template loop detected: