Skip to main content
added 261 characters in body
Source Link
Adnan
  • 44.5k
  • 6
  • 82
  • 246

05AB1E, 8 bytes

Code:

ÐvNú,¦¨D

Explanation:

Ð          # Triplicate the input
 v         # Length times do...
  Nú,      # Prepend N spaces and print with a newline
     ¦¨    # Remove the first and the last character
       D   # Duplicate that string

Uses the CP-1252 encoding. Try it online!

05AB1E, 8 bytes

ÐvNú,¦¨D

Uses the CP-1252 encoding. Try it online!

05AB1E, 8 bytes

Code:

ÐvNú,¦¨D

Explanation:

Ð          # Triplicate the input
 v         # Length times do...
  Nú,      # Prepend N spaces and print with a newline
     ¦¨    # Remove the first and the last character
       D   # Duplicate that string

Uses the CP-1252 encoding. Try it online!

Source Link
Adnan
  • 44.5k
  • 6
  • 82
  • 246

05AB1E, 8 bytes

ÐvNú,¦¨D

Uses the CP-1252 encoding. Try it online!