Skip to content

Instantly share code, notes, and snippets.

@roblogic
Last active November 10, 2020 23:49
Show Gist options
  • Save roblogic/7c6bf6b61a127b6ab12db2f4c71915b4 to your computer and use it in GitHub Desktop.
Save roblogic/7c6bf6b61a127b6ab12db2f4c71915b4 to your computer and use it in GitHub Desktop.
Golf solution to "ASCII Triangles", https://codegolf.stackexchange.com/a/215028/15940 (60 bytes)
for ((;i<$1;))printf "|%$[i++]s\\\\\n"&&a=$a-
(($1))&&<<<$a-
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment