Pascal's triangle: Difference between revisions
Content added Content deleted
Not a robot (talk | contribs) m (→{{header|APL}}: fix subheaders) |
(ivy, an APL-like language) |
||
Line 3,054: | Line 3,054: | ||
1 11 55 165 330 462 462 330 165 55 11 1 |
1 11 55 165 330 462 462 330 165 55 11 1 |
||
1 12 66 220 495 792 924 792 495 220 66 12 1</pre> |
1 12 66 220 495 792 924 792 495 220 66 12 1</pre> |
||
=={{header|ivy}}== |
|||
<lang ivy> |
|||
op pascal N = transp (0 , iota N) o.! -1 , iota N |
|||
pascal 5 |
|||
1 0 0 0 0 0 |
|||
1 1 0 0 0 0 |
|||
1 2 1 0 0 0 |
|||
1 3 3 1 0 0 |
|||
1 4 6 4 1 0 |
|||
1 5 10 10 5 1 |
|||
</lang> |
|||
=={{header|J}}== |
=={{header|J}}== |