Action<string> line = x => Console.WriteLine(x);
int[] coins = new int[] { 100, 25, 10, 5, 1};
Action<int, int[], int, int, int, int, int, int> makeChangeL = (x, y, z, a, b, c, d, e) => {
float floatx = Convert.ToInt32(x);
Console.WriteLine("Input | $" + floatx / 100);
while(x >= y[y.Length - 1]) {
for(int i = 0 + e; i < y.Length; i++) {
default: Console.WriteLine("Error");
for(int i = 0; i < y.Length; i++, e--) {
if(e == 1) {Console.Write("Output| ");}
if(i == 0) {g += "Dollars: " + d;} if(i == 1) {g += "Quarters: " + z;}
if(i == 2) {g += "Dimes: " + a;} if(i == 3) {g += "Nickels: " + b;} if(i == 4) {g += "Pennies: " + c;}
if(i == y.Length) {g += ".";}
public void MakeChange(int coinsBlocked) {
makeChangeL(cash, coins, 0, 0, 0, 0, 0, coinsBlocked);
public change(int dollars) {
public static void Main()
Console.WriteLine("Enter an amount of money: ");
float t = float.Parse(Console.ReadLine()) * 100;
change c = new change(Convert.ToInt32(t));
c.MakeChange(coinsBlock);