28
6
A rhyming program you write
Attempting to win the fight
For winning the contest and vote
It must compute "Hello World"
Then print it very polite
The most popular poem will win.
The requirements are:
- The poem should be of 5 lines with rhymes AABBA
- It can print whatever you want, but the output should contain "hello world" (uppercase/lowercase does not matter, quotes not included in the output)
- Symbols are read aloud. For example, the fourth line above is read: It must compute quote hello world quote
- Post below your code, on another code preview, the "read-aloud" version of your code for disambiguation on special symbols.
Excluded are poems:
- including dead code, or characters which could be safely removed without changing the rhymes or the functionality
- Using comments as a way to rhyme (except if there is a good reason for that)
- using the same symbol as end of phrase for rhyme.
In case of a tie, programs outputting a poem will win. If there is still a tie, shorter programs will win.
New lines do not count. spaces, tabs and newlines are not read aloud. For example, "Hello, world!" would be read aloud "double-quote hello comma world exclamation point double-quote".
I'm voting to close this as too broad because there is no way to objectively determine if an answer is valid. – Post Rock Garf Hunter – 2017-11-11T20:01:19.583
The whole program needs to be of five lines? Can't an answer simply be the snippet of required commands? Excluding the class/function declarations and all? – mikhailcazi – 2014-03-05T11:10:40.257
Yes, the whole program needs to be of five lines. Try to spread your definitions and includes along lines. Most PL have a way to include multiple sentences on a single line with the semi-colon or similar. – Mikaël Mayer – 2014-03-05T12:21:04.810
I see that many of the answers are attempting to produce limericks, because you mention that word in your title, but not in your requirements. – TRiG – 2014-07-02T11:22:25.160
That's true. I only want the program to be a limerick. – Mikaël Mayer – 2014-07-02T12:39:18.393