While construct

A loop is used in the programming world to make a sequence of execution steps repeat itself until the condition is met. The while loop is one of the building blocks of the C# programming architecture and is used to loop through the body mentioned in curly brackets until the condition mentioned in the while criteria is true:

while (condition)
{
loop body;
}

The condition mentioned in the loop should evaluate to true to execute the loop for the next iteration.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.147.84.62