
![]()
编辑

![]()
编辑
public class Main {
public static void main(String args[]){
double yxq=100000;
int cishu=0;
while(true) {
if(yxq > 50000) {
yxq = yxq - yxq * 0.05;
cishu=cishu+1;
}
else if(yxq >= 1000){
yxq = yxq - 1000;
cishu=cishu+1;
}
else{
break;
}
}
System.out.print(cishu);
}
}
收获:无限循环的使用;break的使用;数据类型的使用;
![]()









![【Linux】-Kafka集群安装部署[18]](https://img-blog.csdnimg.cn/direct/aa5bd4038b144f02a1e884bf076ee545.png)









