Pascal's triangle: Difference between revisions
Content added Content deleted
m (→{{header|J}}) |
m (→{{header|J}}) |
||
Line 3,186: | Line 3,186: | ||
1 4 6 4 1</syntaxhighlight> |
1 4 6 4 1</syntaxhighlight> |
||
However, multi-digit numbers take up additional space, looks slightly odd |
However, multi-digit numbers take up additional space, which looks slightly odd. But we can work around that by adding additional padding and shifting the lines a bit more: |
||
<syntaxhighlight lang=J> require'format/printf' |
<syntaxhighlight lang=J> require'format/printf' |