Close the braces regarding the "do" properly.
static void Main(string[] args)
{
string cont;
do
{
Console.WriteLine("course list");
Console.WriteLine("1.c#:2.asp.net:3.ado.net");
switch (Convert.ToInt32(Console.ReadLine()))
{
case 1:
Console.WriteLine("1. whether c# is too easy"+"\n"+"2.how many days coarse do u prefer"+"\n"+"3.which timings are preferable for u");
break;
case 2:
Console.WriteLine("1.coarse duration"+"\n"+"2.timings"+"3.syllabus cover");
break;
case 3:
Console.WriteLine("1.how do u feel ado.net"+"\n"+"2.thank you for ur interest");
break;
default:
Console.WriteLine("wrong choice");
break;
}
Console.WriteLine("do u want to continue to continue ? (Y/N): ");
cont = Console.ReadLine();
}
while(cont=="Y"||cont=="y");
Console.ReadLine();
}