index | submit | rank | book

good – Good day

In English, we greet people by “Good morning”, “Good afternoon” or “Good evening” depending on the time of day.

Good morning.  Good afternoon.  Good evening.

Write a program that given the current hour (in 24 hours format) prints a good morning, good afternoon or good evening message according to the following list:

Input and Output

Input will consist of several lines each with a single number h where

0 ≤ h < 24

For each line of input, output should contain a corresponding line with either:

Example input

11
15
20

Example output

Good morning
Good afternoon
Good evening

Scoring

try first: oddeven good1

try next: calc factorial triangle

index | submit | rank | book

Copyright © 2020-2023 Rudy Matela
All rights reserved