Example #1
0
    static void Main()
    {
        var atm = new Atm();

        while (true)
        {
            int option;
            Console.WriteLine();
            Console.WriteLine("Menu:");
            Console.WriteLine("1. Create Account");
            Console.WriteLine("2. Deposit");
            Console.WriteLine();
            Console.Write("Please make a selection: ");
            var input = int.TryParse(Console.ReadLine(), out option);
            Console.WriteLine("-----------------");
            switch (option)
            {
            case 1:
                atm.CreateAccount();
                break;

            case 2:
                atm.Deposit();
                break;
            }
        }
    }