int hotTemperature = 140; int minutes = 0; for(int i = hotTemperature; i > 72; i--){ minutes++; } System.out.println("Coffee took " + minutes + " minutes to cool.");