Methods for Designing Loops

The method for designing loops is to ask two questions:
  • Will it always end?
  • Whenever it terminates, will the data meet the conditions required?
Well, the loop terminates (and the game ends) when:
  1. The mouse runs to the hole.
  2. The mouse runs into the cat.
  3. The cat catches the mouse.

Reference Reference

Feedback


Timestamp icon Last updated: Tuesday, 7 January 2014


http://pic.dhe.ibm.com/infocenter/cicsts/v5r1/topic/com.ibm.cics.rexx.doc//dfhrx/loops4.html