RosettaCodeData/Task/Reverse-a-string/Brainf---/reverse-a-string-2.bf

6 lines
215 B
Brainfuck

,----- ----- [+++++ +++++ > , ----- -----] If a newline is hit counter will be zero and input loop ends
<[.<] run all chars backwards and print them
just because it looks good we print CRLF
+++++ +++++ +++ . --- .