第七次作业2
2018-11-11 本文已影响0人
zealot_bbc8
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();