O'Reilly logo

Essential PTC® Mathcad Prime® 3.0 by Brent Maxfield

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 12

Advanced Programming

Abstract

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required