Some new learner of C# faces this type of problem. Don''t worry use this code once.
using System;
class Investment
{
public static void Main()
{
int P=1000,n;
float r=0.1F;
double V;
Console.WriteLine(" ***** Investement Option of 10 yrs **** ");
Console.WriteLine(""); // Blank Line
Console.WriteLine("Principal(P) Rate(r) Number Of Yrs(n) Value Of Money(V)\n");
Console.WriteLine("--------------\n");
V = P * (1 + r);
for (n=1;n<=10;n++)
{
Console.WriteLine (" " + P + " " + r + " " + n + " " + V);
P = P + 1000;
r = r + 0.01F;
V = P * (1 + r);
}
Console.ReadLine();
}
}