using System;
public class DoWhileLoopWithBreakExample
{
public static void Main(string[] args)
int i = 1;
do{
Console.WriteLine(i);
//check if value of i is 5
if(i==5)
//if value of i is 5, exit from loop and it will not print remaining values
break;
}
i++;
} while (i <= 10) ;
Console.Write("After loop ends");