you need to rewrite ur code
<pre lang="cs">using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1
{
class Wa
{
public void start()
{
int choice = -1;
while (choice != 0)
{
WriteMenuText();
choice = int.Parse(Console.ReadLine());
{
if(choice==1)
Bin1();
else
Bin2();
}
}
}
public void WriteMenuText()
{
Console.WriteLine("\n1 Bin 2");
Console.WriteLine("2 Bin 2 ");
Console.WriteLine("0 Exit the program");
Console.WriteLine("\nYour choice");
}
private void Bin1()
{
}
private void Bin2()
{
}
}
}