예제 #1
0
        static void Main()
        {
            CoinCounter TestCounter = new CoinCounter();

            Console.WriteLine(" Please Enter Amount");
            string amountString = Console.ReadLine();
            int    amountInt    = int.Parse(amountString);

            Console.WriteLine(TestCounter.CoinTest(amountInt));
        }
예제 #2
0
        static void Main()
        {
            CoinCounter TestCounter = new CoinCounter();

            Console.WriteLine(" Please Enter Amount");
            string amountString = Console.ReadLine();
            int    amountInt    = int.Parse(amountString);

            Console.WriteLine(TestCounter.CoinTest(amountInt));
            Console.WriteLine(" Would you like to enter another number? Y/N");
            string newEntry = Console.ReadLine();

            if (newEntry == "Y" || newEntry == "y")
            {
                Main();
            }
        }