Esempio n. 1
0
    static void Main(string[] args)
    {
        while (true)
        {
            Console.WriteLine("Menu");
            Console.WriteLine("1.Create Account");
            Console.WriteLine("2.ATM");
            Console.Write("Please enter your selections: ");
            int select = int.Parse(Console.ReadLine());

            switch (select)
            {
            case 1:
                CreateAccount account = new CreateAccount();
                account.GenerateAccount();
                break;

            case 2:
                ATM atm = new ATM();
                atm.Deposit();
                break;
            }
        }
    }