c#练习习题:while循环
2006年培养学员80000人,每年增长25%,请问按此增长速度,到哪一年培训学员人数将达到20万人? int count = 80000; int year = 2006; while (count < 200000) { count = Convert.ToInt32(count * 1.25); year++; Console.WriteLine("从{0}年人数能达到{1}", year, count); } Console.WriteLine(year); Console.ReadKey();