/*
Qu3: Shows difference between break and continue by writing suitable C# code.
*/
using System;
public class Program
{
public static void CheckedMethod()
int a=0;
while(a<10)
if(a==5)
a+=1;
Console.WriteLine("Break Operation\n\n");
break;
}
Console.WriteLine(a);
a++;
public static void UncheckedMethod()
Console.WriteLine("Continue Operation to omit the value 5");
continue;
public static void Main()
CheckedMethod();
UncheckedMethod();