Console.WriteLine("请输入起始工资");
Double money = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("请输入年龄");
int age = Convert.ToInt32(Console.ReadLine());
Double sum = money;
while (age < 65)
{
money = money * 1.05;
age++;
sum += money;
}
Console.WriteLine("一个职员在65岁退休之前能赚到{0}钱", sum);
Console.ReadKey();