2006年培養學員8萬人,每年增長25%,請問按此增長速度,到那一年培訓學員人數將達到20萬人?

public class Renwu5 { public static void main(String[] args) { int a=2006;//定義最初年份 for( int x=8;x<=20;a++) {     x=(int)(x*1.25);//運算公式 if(x==20)//判斷 break;//如果x=20就跳出循環 } System.out.println("培訓學員人數將達
相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息
相關文章