Haskell - Hello / Bye P87974


Statement
 

pdf   zip

thehtml

Write a program that reads the name of a person and writes a nice message.

Input

The input is the name of a person.

Output

Is the name starts with an A, ‘Hello!’ must be written. Otherwise, ‘Bye!’ must be written.

Observation

In order to solve this problem in Haskell, write a main action and choose the GHC compiler.

Public test cases
  • Input

    Alexander
    

    Output

    Hello!
    
  • Input

    Ruth
    

    Output

    Bye!
    
  • Information
    Author
    Jordi Petit
    Language
    English
    Translator
    Jordi Petit
    Original language
    Catalan
    Other languages
    Catalan
    Official solutions
    Haskell
    User solutions
    Haskell