我的程序哪里错了呀?
题目要求公司的业绩06年8万,以125%的速度增长什么时候到20万?
程序代码:
public class Ab {
/**
* @param args
*/
public static void main(String[] args) {
double first=8;
double cre=1+25/100;
int year=2006;
while(first<=20){
first=first*cre;
year++;
}
System.out.println("以25%的增长速度,"+year+"年能达到20万的人数");
// TODO Auto-generated method stub
}
}







