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); } }}Why is the result 75 days different from the teacher’s
Caution while condition