Write a program that reads a sequence of letters that ends with a dot
and tells if it contains the succession of consecutive letters
‘h’, ‘e’, ‘l’, ‘l’,
‘o’ or not.
Input consists of a sequence of lowercase letters ended in
‘.’.
Print “hello” if the input consecutively contains the
letters ‘h’, ‘e’, ‘l’,
‘l’, ‘o’. Otherwise, print
“bye”.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T12:12:04.620Z
© Jutge.org, 2006–2026.
https://jutge.org