Sierpinski carpet: Difference between revisions
m
→{{header|Commodore BASIC}}: Add note about possible PETSCII improvement.
m (→Bash/Ksh/Zsh + dc(1): Use shell parameter substitution instead of `tr` to turn ternary into binary) |
m (→{{header|Commodore BASIC}}: Add note about possible PETSCII improvement.) |
||
Line 1,422:
READY.</pre>
You can get a more graphical display by replacing the <tt>"#"</tt> with <tt>CHR$(18)+CHR$(186)+CHR$(146)</tt>; for maximum portability it should also output a <tt>CHR$(142)</tt> at some earlier point, maybe by adding it to the otherwise-empty <tt>PRINT</tt> statement on line 110. Then the filled-in squares become mostly-solid blocks with narrow gaps along their right and bottom edges so you can still count them when adjacent.
=={{header|Common Lisp}}==
|