It is a loop and also known as entry controlled loop. While
loop first test the conditions, when the conditions are true than body of the
loop (block of statements associated with loop) is executed and the condition
is rechecked by increment or decrement in conditional values. This process is
repeated until the condition become false, when the condition is false than
execution of the program will jump to the next statement.
Sy:
while (condition)
{
……………..
……………..
}
No comments:
Post a Comment