The bakery opens at 7 and closes at 19. Write is_open(hour): return true if the shop is open at hour (0 to 23), otherwise false. At 7 it's open; at 19 it's already closed.
is_open(9)→Trueis_open(20)→Falsebool is_open(int hour)#include <stdbool.h>
bool is_open(int hour) {
bool open = false;
// your code here: open is true when hour is at least 7 and below 19
return open;
}
Run tries the examples. When they look right, Submit.