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

6 lines
215 B
Beef
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
,----- ----- [+++++ +++++ > , ----- -----] 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
+++++ +++++ +++ . --- .