class WhileDemo2{ public static void main(String[] args){ double dayMoney=2.5; double daySum=0; int dayCount=1; double result=100; while(daySum<=result){ daySum =dayMoney; if (dayCount%5==0){ daySum-=6; } dayCount ; System.out.println(daySum); System.out.println(dayCount); } }}結果が教師の結果と 75 日異なるのはなぜですか
注意while条件