コード例 #1
0
ファイル: Coin.cs プロジェクト: harrisejm/Coin-Counter-CSharp
        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
ファイル: Coin.cs プロジェクト: sonekase/Coin-Counter-Csharp
        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();
            }
        }