Write a program that reads a person’s name and greets them humorously.
The input is a person’s name.
If the name is masculine, you should write ‘Hola maco!’.
If the name is feminine, you should write ‘Hola maca!’.
Assume that all names that end with A are feminine.
To solve this problem in Haskell, write a function main and choose the compiler GHC.
Author: Unknown
Translator: Jordi Petit
Generation: 2026-02-12T08:54:21.105Z
© Jutge.org, 2006–2026.
https://jutge.org