Do While Loop
using System;
//Statements inside any do-while loop are executed atleast once.
public class Iteration
{
static void Main(String[] args)
{
int i = 0;
do
{
Console.WriteLine("Value = " + i);
i++;
} while (i < 5); // Executes until i<5
Console.ReadLine();
}
}
Output:
Value = 0
Value = 1
Value = 2
Value = 3
Value = 4