public static void Main()
float P, Rate, Total, M, I;
Console.WriteLine("*** Loan Calculator ***");
Console.Write("Borrower's Name: ");
Name = Console.ReadLine();
Console.Write("Borrower's ID: ");
Console.Write("Principal Amount: ");
P = Int32.Parse(Console.ReadLine());
Console.Write("Time (year): ");
Time = Int32.Parse(Console.ReadLine());
Console.Write("Rate (decimal): ");
Rate = float.Parse(Console.ReadLine());
Console.WriteLine(Name + " with borrower's ID; " + ID);
Console.WriteLine("has to pay a total of : " + string.Format("{0:N}", Total));
Console.WriteLine("with monthly pay of " + String.Format("{0:N}", M)+ " for " + duration + "months");