do-while Loop
do-while executes the block at least once, then repeats if condition is true.
int number = 0;do{ Console.WriteLine(number); number++;} while (number < 3);Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”012