Console.WriteLine("年龄"); int a = Convert.ToInt32(Console.ReadLine()); Console.WriteLine("薪水"); double b = Convert.ToInt32(Console.ReadLine()); int i = 0; double c = 0; while (i<=65-a) { c+= b; b *= 1.05; i++; } Console.WriteLine(c); Console.ReadKey();
网友评论