beautypg.com

4 while statements – Teledyne LeCroy LeCroy Analyzers File Based Decoding Manual User Manual

Page 28

background image

Chapter 7: Statements

File-based Decoding User Manual

22

LeCroy Corporation

7.4 while Statements

A while statement is written as

while <expression> <statement>

An example of this is

x = 2;

while ( x < 5 )

{

Trace ( x, ", " );

x = x + 1;

}

The result of this would be

2, 3, 4,