#include <stdio.h>
#include <stdlib.h>
#include <time.h>

#define SIZE 5
#define WORD_SIZE 20

int main(void)
{
    const char *firstLines[SIZE] =
    {
        "There once was a programmer named Dave",
        "There once was a coder from town",
        "There once was a man with a plan",
        "There once was a student so bright",
        "There once was a hacker online"
    };

    const char *secondLines[SIZE] =
    {
        "Who wrote all his code in a cave",
        "Who solved every bug with a frown",
        "Who worked through the night like a fan",
        "Who studied and coded all night",
        "Who typed every program just fine"
    };

    const char *thirdLines[SIZE] =
    {
        "He debugged every day",
        "He compiled right away",
        "He followed his plan",
        "He practiced with might",
        "He learned every line"
    };

    const char *fourthLines[SIZE] =
    {
        "And never would leave",
        "With no time to grieve",
        "And finished the span",
        "And solved every fight",
        "And checked every sign"
    };

    const char *fifthLines[SIZE] =
    {
        "Until all his programs behaved",
        "And his bugs all went down",
        "And he became the best man",
        "And his answers were right",
        "And his code worked just fine"
    };

    srand((unsigned int)time(NULL));

    int choice = rand() % SIZE;

    printf("%s\n", firstLines[choice]);
    printf("%s\n", secondLines[choice]);
    printf("%s\n", thirdLines[choice]);
    printf("%s\n", fourthLines[choice]);
    printf("%s\n", fifthLines[choice]);

    return 0;
}