Do-While loops
Do-While Loop Statement in Computer Programming
do {
// Code block to be executed
} while (condition);using System;
class Program {
static void Main() {
int counter = 0;
do {
Console.WriteLine(counter);
counter++;
} while (counter < 5);
}
}Last updated
Was this helpful?