public static void Main()
decimal totalChangeValue;
Console.WriteLine("Welcome to Change for a Dollar Console Game.");
Console.WriteLine("Enter amount of nickels: ");
nickel = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter amount of pennies: ");
penny = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter amount of dimes: ");
dime = Convert.ToInt32(Console.ReadLine());
Console.WriteLine("Enter amount of quarters: ");
quarter = Convert.ToInt32(Console.ReadLine());
totalNValue = nickel * 0.05M;
totalPValue = penny * 0.01M;
totalDValue = dime * 0.10M;
totalQValue = quarter * 0.25M;
totalChangeValue = totalNValue + totalPValue + totalDValue + totalQValue;
if (totalChangeValue == dollar)
Console.WriteLine("Congratulations! You won the game!");
Console.WriteLine("The amount entered was more or less than a dollar. Please try again.");