static void Main(string[] args) { SavingsBank sav = new SavingsBank(); var Interest = sav.GetInterest(1000, 5, 6); Console.WriteLine("Interest is: {0}", Interest); Console.ReadKey(); }
static void Main(string[] args) { SavingsBank s = new SavingsBank(); var SI = s.GetSimpleIntrest(15000, 26, 5.6); Console.WriteLine("The simple interest is {0}", SI); var TotalBal = s.GetTotalBalance(15000, SI); Console.WriteLine("The total balance is {0}", TotalBal); }
static void Main(string[] args) { SavingsBank sb = new SavingsBank(); var si = sb.simpleinterest(50000.00, 5, 8.00); Console.WriteLine("the simple interest is {0}", si); var bal = sb.getbalance(si, 50000.00); Console.WriteLine("balance is {0}", bal); Console.ReadKey(); }
static void Main(string[] args) { SavingsBank objsb = new SavingsBank(); Console.WriteLine("enter the principle amount"); var p = double.Parse(Console.ReadLine()); Console.WriteLine("enter the time in years"); var t = double.Parse(Console.ReadLine()); Console.WriteLine("enter rate of interest"); var r = double.Parse(Console.ReadLine()); var SI = objsb.Getsimpleintrest(p, t, r); Console.WriteLine("simple interest : {0}", SI); var balance = objsb.Getbalance(); Console.WriteLine("balance: Rs {0}", balance); Console.ReadLine(); }
static void Main(string[] args) { SavingsBank objSB = new SavingsBank(35000.00); Console.WriteLine("enter the principal amount"); var pr = double.Parse(Console.ReadLine()); Console.WriteLine("enter the duration in years"); var duration = int.Parse(Console.ReadLine()); Console.WriteLine("enter rate of interest (%)"); var rate = float.Parse(Console.ReadLine()); var si = objSB.GetSimpleInterest(pr, duration, rate); Console.WriteLine("Simple Interst: Rs {0}", si); var balance = objSB.GetBalance(); Console.WriteLine("Balance: Rs {0}", balance); Console.ReadLine(); }