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)); }
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(); } }