public void Normal() { Console.Clear(); Console.WriteLine("Enter the amount you want to withdraw"); int i = System.Convert.ToInt32(Console.ReadLine()); ATMbo Nbl = new ATMbo { dep = i }; ATMbll bll = new ATMbll(); bll.fastbal(Nbl); }
public void fastcash() { Console.Clear(); Console.WriteLine("Select the Amount"); Console.WriteLine("1_500"); Console.WriteLine("2_1000"); Console.WriteLine("3_2000"); Console.WriteLine("4_5000"); Console.WriteLine("5_10000"); Console.WriteLine("6_20000"); int i = System.Convert.ToInt32(Console.ReadLine()); int b; for (int j = 0; j < 1; j++) { if (i == 1) { b = 500; } else if (i == 2) { b = 1000; } else if (i == 3) { b = 2000; } else if (i == 4) { b = 5000; } else if (i == 5) { b = 10000; } else if (i == 6) { b = 20000; } else { Console.WriteLine("Wrong input"); } } ATMbo fbl = new ATMbo { dep = i }; ATMbll bll = new ATMbll(); bll.fastbal(fbl); }