using System; namespace feb17 { /// /// Summary description for Class1. /// class Class1 { /// /// The main entry point for the application. /// [STAThread] static void Main(string[] args) { double cur_balance = 15000; for(int i=1 ; i <= 48; i++) { double interest = cur_balance*0.005; cur_balance -= 400 - interest; } if(cur_balance <= 0.0) Console.WriteLine("Yes! You can afford."); else Console.WriteLine("No. You can not afford."); } } }