Heim > Fragen und Antworten > Hauptteil
class WhileDemo2{ public static void main(String[] args){ double dayMoney=0; int dayCount=1; while(daySum<=result){ daySum+=dayCount %5==0){ daySum-=6; } dayCount++; System.out.println(dayCount);
autoload2022-07-01 09:07:59
注意while条件
谢谢老师给解答疑惑 ,真棒!!!!