Console.WriteLine("Exiting the code");
Console.WriteLine("Please press any key to exit");
Console.ReadLine();
break;
}
else
{
Console.WriteLine("Wrong selection");
Console.WriteLine("Please press any key to go to the main menu");
Console.ReadLine();
Active
Error CS1002 ; expected ConsoleApp50 69 Active
Error CS1513 } expected ConsoleApp50 69 Active
Error CS1513 } expected ConsoleApp50 98 Active
Hi! While I wish you luck, this is a C++ forum, not a C# one, and despite being named similarly the two languages are very different.
That said, you might want to reread how to write a switch statement, since I'm pretty sure that default: else if isn't valid. It also looks a little bit like just below your first break statement, you actually leave your switch statement, but we wouldn't be able to tell without seeing more code.
Edit: This is 100% a you-know-what profile that we didn't catch. All of the user's posts are verbatim copies from other websites, and the user profile here has links in it.