CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Counting and Repeating

when we repeat something:

  • we may count to find out where to stop
  • mark from where to where we repeat
    • use { } and indent
  • initial condition
  • make sure we will stop sometime
  • in C++ you may use the while, do/while and for