133k views
25 votes
Checkpoint 4.20 Assume hour is an int variable. Write an if statement that displays the message “Time for lunch” only if hour is equal to 12.

1 Answer

9 votes

Answer:

if(hour == 12)

{cout << "Time for lunch";}

Step-by-step explanation:

User Eric Yung
by
8.5k points