Skip to main content
Commonmark migration
Source Link

SmileBASIC, 74 bytes

FOR I=0TO N-1P
NEXT
FOR I=N-2TO.STEP-1P
NEXT
DEF P?" "*(N-I);"* "*(N+I)END

#SmileBASIC, 74 bytes FOR I=0TO N-1P NEXT FOR I=N-2TO.STEP-1P NEXT DEF P?" "(N-I);" "*(N+I)END AddsAdds a leading and trailing space.

These "hexagons" look horrible when the characters have the same width and height...

#SmileBASIC, 74 bytes FOR I=0TO N-1P NEXT FOR I=N-2TO.STEP-1P NEXT DEF P?" "(N-I);" "*(N+I)END Adds a leading and trailing space.

These "hexagons" look horrible when the characters have the same width and height...

SmileBASIC, 74 bytes

FOR I=0TO N-1P
NEXT
FOR I=N-2TO.STEP-1P
NEXT
DEF P?" "*(N-I);"* "*(N+I)END

Adds a leading and trailing space.

These "hexagons" look horrible when the characters have the same width and height...

Source Link
12Me21
  • 6.7k
  • 1
  • 22
  • 40

#SmileBASIC, 74 bytes FOR I=0TO N-1P NEXT FOR I=N-2TO.STEP-1P NEXT DEF P?" "(N-I);" "*(N+I)END Adds a leading and trailing space.

These "hexagons" look horrible when the characters have the same width and height...