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);
注意while条件
注意while条件