public static void Main()
int [] denominations = new int[] { 1, 5, 10, 25, 50, 100 };
Console.Write("Enter the amount in cents");
var total = Console.ReadLine();
var count = Calculate(Convert.ToDecimal(total));
Console.WriteLine(count);
public static long Calculate(decimal total)