April 2005
Intermediate to advanced
344 pages
11h 59m
English
A while
loop expects one conditional statement and
loops as long as the condition is true. For example, consider the
following while loop, which prints integers 1 to
10:
i=1;
while(i <= 10)
{
display(i, "\n");
i++;
}Read now
Unlock full access