/ for (int i = 1; i <=10;i++) {
double count = 10;
for (int j= 0; j < 20; j++) {
int random=(int)(1+Math.random()*4);
count+=5;
if (random == 1) {
count =count*1.1;
} else if (random == 2) {
count=count*1.15;
} else if (random == 3) {
count =count*1.2;
} else if (random == 4) {
count =count*1.3;
}
count=count*0.92;
System.out.println(count);
// if (j ==19) {
// System.out.println("第"+i+"次20年收益"+count);
// }
}
// }
做梦的代码
最新推荐文章于 2023-04-11 00:00:35 发布