asked 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:

answered
User Eric Yung
by
9.5k points

No related questions found