So, I handwrote this program in BrainFuck:
+++++++++++++++++[>++++>++++>++++>++++>++>+++++>++++>++++>++++>++++<<<<<<<<<<-]
>++++.>+.>++++++++..>+++++++++++.>--.>++.>+++++++++++.>++++++++++++++.>++++++++.>.
and it displays exactly what I wanted:
HELLO WORLD
But then I wanted it to display HELLO WORLD
five times in a row, so I wrapped it in a loop:
+++++[>
+++++++++++++++++[>++++>++++>++++>++++>++>+++++>++++>++++>++++>++++<<<<<<<<<<-]
>++++.>+.>++++++++..>+++++++++++.>--.>++.>+++++++++++.>++++++++++++++.>++++++++.>.
<<<<<<<<<<<-]
I expected it to have this output:
HELLO WORLDHELLO WORLDHELLO WORLDHELLO WORLDHELLO WORLD
But it's displaying this instead:
HELLO WORLDŠ˜˜ž@®ž¤˜ˆØÏääí`íöäÌ 00<€\<H0hY||‹ ³‹š|T
What am I doing wrong with my loop? Why isn't it displaying HELLO WORLD
five times in a row, as expected?