do-while Loop
A loop that runs its body once before checking whether to repeat.
What is do-while Loop in C#?
do-while Loop — A loop that runs its body once before checking whether to repeat.
class Counter
{
int CountToThree()
{
int number = 0;
while (number < 3)
{
number++;
}
return number;
}
}
Level: Apprentice · More C# terms at this level
Updated