static void Main() { Canara c1 = new Canara(); Console.WriteLine("enter the amount you want to invest"); int amount = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("specify duration in years:"); int years = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("maturity amount as per Canara bank:" + c1.calculateBalanceCanara(amount, years)); Console.WriteLine("maturity amount as per SBI:" + c1.calculateBalanceSBI(amount, years)); Console.WriteLine("maturity amount as per RBI:" + c1.calculateBalanceCanara(amount, years)); Console.ReadKey(); }
static void Main() { Canara c1 = new Canara(); Console.WriteLine("Enter the Amount you want to Invest:"); int amount = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Specify Duration in Years:"); int years = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("Maturity Amount as per Canara Bank :" + c1.calculateBalanceCanara(amount, years)); Console.WriteLine("Maturity Amount as per SBI :" + c1.calculateBalanceSBI(amount, years)); Console.WriteLine("Maturity Amount as per RBI :" + c1.calculateBalanceRBI(amount, years)); Console.ReadKey(); }