using System; public class MainClass { static void Main() { string resp; while (true) { Console.WriteLine("Menu\n\n1 - Task A"); Console.WriteLine("2 - Task B"); Console.WriteLine("E - E(xit)"); resp = (Console.ReadLine()).ToLower(); if (resp == "e") { break; } } } }