Faulhaber's triangle: Difference between revisions

Content added Content deleted
(Added solution using C)
Line 2,029: Line 2,029:


=={{header|zkl}}==
=={{header|zkl}}==
{{libheader|GMP}} GNU Multiple Precision Arithmetic Library
Uses the code from [[Faulhaber's formula#zkl]]
Uses the code from [[Faulhaber's formula#zkl]]
and GMP (Gnu Multi Precision library).
<lang zkl>foreach p in (10){
<lang zkl>foreach p in (10){
faulhaberFormula(p).apply("%7s".fmt).concat().println();
faulhaberFormula(p).apply("%7s".fmt).concat().println();