#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...