Pascal's triangle: Difference between revisions

(→‎{{header|PHP}}: This code wasn't right. The example asks for ten rows and the code is two off. The 2nd number of the last row should be the function argument int. I have corrected the code.)
Line 1,021:
1 7 15 23 23 15 7 1
</pre>
 
=={{header|K}}==
<lang K> pascal:{(x-1){+':0,x,0}\1}
 
pascal 6
(1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
1 5 10 10 5 1)</lang>
 
=={{header|Liberty BASIC}}==
495

edits