CyberSlug Rules!

Beginner Programming CMPS060

Prof. Paulo Franca

Home

Syllabus

Login

Objects

Download

Staff only

Conditional Repetition

a statement may have to be repeated for an unknown number of times!

examples:

  • keep exercising until 5 pm;
  • walk until you get there;

a condition will determine when the loop ends.

examples:

ask for a positive value;

ask for payment greater than price;

checking the time.