Types of Loops
Let's discuss iterative statements in C#.
We'll cover the following...
We'll cover the following...
A loop can repeat a block of code multiple times. The four main types of loops are while, do-while, for, and foreach.
What is a while loop?
A while loop executes a block of code while the condition is true.
Syntax
while(condition)
{
//set of ...