October 2013
Beginner to intermediate
584 pages
11h 50m
English
Looping was the main concept covered in this chapter. This concept, combined with the logical programming discussed in Chapter 9 can make some very powerful programs.
There are two types of loops: for loops and while loops. The for loop loops a specific number of times and is controlled by an iteration variable. The while loop will loop until a specific condition is met. If the condition is never met, the loop will go indefinitely.
The break and continue operators are used to control when and how a program loops. The break operator stops the execution when a specific condition is met. The continue operator allows PTC Mathcad to skip over a portion of a loop and move back to the beginning of the loop.
The ...