对于基础小白来说,我更需要练习
public class SingleCellReproduction {
public static void main(String[] args) {
int cellNum =1,time = 1 ;
while(time < 10){
cellNum *= 2;
time++;
}
System.out.println("第" + time + "代菌落中的细菌数量:" + cellNum + "个。");
}
}
对于基础小白来说,我更需要练习
public class SingleCellReproduction {
public static void main(String[] args) {
int cellNum =1,time = 1 ;
while(time < 10){
cellNum *= 2;
time++;
}
System.out.println("第" + time + "代菌落中的细菌数量:" + cellNum + "个。");
}
}
本文标题:第" + time + "代菌落中的细菌数量
本文链接:https://www.haomeiwen.com/subject/xwphddtx.html
网友评论