index | submit | rank | book

good1 – Good day (easy version)

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 with a single number h where 0 ≤ h < 24

Output should contain a single line with either:

Example input 1


Example output 1

Good morning

Example input 2


Example output 2

Good afternoon

Example input 3


Example outpu 3

Good evening


try first: order1

try also: signum1

try next: factorial1 triangle1

index | submit | rank | book

Copyright © 2020-2023 Rudy Matela
All rights reserved