2006年培养学员8万人,每年增长25%,请问按此增长速度,到哪一年培训学员人数将达到20万人?
double cnt = 8; int y = 0; while (cnt < 20) { y++; cnt *= 1.25; } Console.WriteLine(y.ToString());