1/31/00
COM1100 Winter2000 Yuhong Yin
18
While statement
nUsed to repeat a statement (or black) while an expression is true (not zero) 
nSyntax :
n while (condition) {
n statements;
n }   
npurpose: execute the statements while the condition remains true.
n