Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Added clarification on implementation requirements.
Source Link
Zack C.
  • 931
  • 5
  • 7

brainfuck, 25 bytes

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

Try it online! Note: Requires an implementation with 8-bit unsigned cells

Output:

~~~~~}}}}}|||||{{{{{zzzzz

Explanation

--[ 254
 -->+<] /2 = 127 into the second cell
+++++[ Five times
 ->-.....<] Print the second cell - 1 five times

brainfuck, 25 bytes

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

Try it online!

Output:

~~~~~}}}}}|||||{{{{{zzzzz

Explanation

--[ 254
 -->+<] /2 = 127 into the second cell
+++++[ Five times
 ->-.....<] Print the second cell - 1 five times

brainfuck, 25 bytes

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

Try it online! Note: Requires an implementation with 8-bit unsigned cells

Output:

~~~~~}}}}}|||||{{{{{zzzzz

Explanation

--[ 254
 -->+<] /2 = 127 into the second cell
+++++[ Five times
 ->-.....<] Print the second cell - 1 five times
Source Link
Zack C.
  • 931
  • 5
  • 7

brainfuck, 25 bytes

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

Try it online!

Output:

~~~~~}}}}}|||||{{{{{zzzzz

Explanation

--[ 254
 -->+<] /2 = 127 into the second cell
+++++[ Five times
 ->-.....<] Print the second cell - 1 five times

AltStyle によって変換されたページ (->オリジナル) /