double sum = 80000;
int n = 2006;
while (sum <= 200000)
{
sum=sum*(1+0.25);
n++;
}
Console.WriteLine(n);
Console.ReadKey();
double sum = 80000;
int n = 2006;
while (sum <= 200000)
{
sum=sum*(1+0.25);
n++;
}
Console.WriteLine(n);
Console.ReadKey();
本文标题:第七次作业2
本文链接:https://www.haomeiwen.com/subject/atlffqtx.html
网友评论