I am expecting the below loop logic to bring cookies to 504 before printing 42. The program will run but nothing is returned.
public static void main(String[] args) {
int cookies = 500;
while(cookies % 12 != 0) {
if (cookies % 12 == 0) {
System.out.println(cookies/12);
}
cookies++;
}
}
Thank you!