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

edited body
Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292

APL (Dyalog Unicode), 9 bytes SBCS

Full program. Prompts stdin for n (actually works for the range 0–370–29). APL keywords are single character symbols, so this prints n symbols to stdout.

⎕↑156↓⎕AV

Try it online! Try it online!

⎕AV the Atomic Vector (i.e. the character set)

156↓ drop the first 156 elements

⎕↑ prompt for n and take that many elements from the above

APL (Dyalog Unicode), 9 bytes SBCS

Full program. Prompts stdin for n (actually works for the range 0–37). APL keywords are single character symbols, so this prints n symbols to stdout.

⎕↑156↓⎕AV

Try it online!

⎕AV the Atomic Vector (i.e. the character set)

156↓ drop the first 156 elements

⎕↑ prompt for n and take that many elements from the above

APL (Dyalog Unicode), 9 bytes SBCS

Full program. Prompts stdin for n (actually works for the range 0–29). APL keywords are single character symbols, so this prints n symbols to stdout.

⎕↑156↓⎕AV

Try it online!

⎕AV the Atomic Vector (i.e. the character set)

156↓ drop the first 156 elements

⎕↑ prompt for n and take that many elements from the above

Source Link
Adám
  • 31.8k
  • 4
  • 131
  • 292

APL (Dyalog Unicode), 9 bytes SBCS

Full program. Prompts stdin for n (actually works for the range 0–37). APL keywords are single character symbols, so this prints n symbols to stdout.

⎕↑156↓⎕AV

Try it online!

⎕AV the Atomic Vector (i.e. the character set)

156↓ drop the first 156 elements

⎕↑ prompt for n and take that many elements from the above

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