brainfuck

How do I print “What happened on the 4th of June 1989?” in BrainFuck?


I need to learn how to display this text in BrainFuck among other programming languages, BrainFuck included.


Solution

  • You may use the following code in Brainfuck to generate that.

    +[--->++<]>+.+++[->++++<]>.-------.--[--->+<]>-.[---->+<]>+++.-[--->++<]>--.-------.-[++>-----<]>..-----------.+++++++++.---------.-.-[--->+<]>-.+++++[->+++<]>.-.-[->+++++<]>-.---[->++++<]>.------------.---.--[--->+<]>-.++[-->+++<]>+.++++++[->++<]>.------------.--[--->+<]>--.+++++[->+++<]>.---------.[--->+<]>--.+++++[->++<]>.-[----->+<]>.-------.---------.--[--->+<]>-.[-->+++<]>+.++++++++.-.+.++++++.
    

    This is a code generated from Brainfuck text generator

    Truly brain fucked. (upvoted btw)