Floyd's triangle: Difference between revisions

Undo revision 178793 by CRGreathouse (talk)
(→‎{{header|PARI/GP}}: remove erroneous correction)
(Undo revision 178793 by CRGreathouse (talk))
Line 1,538:
 
=={{header|PARI/GP}}==
 
{{incorrect|PARI/GP|It does not ensure that there is exactly one space between the columns in the last row.}}
 
<lang parigp>F(n)=my(fmt=Str("%"1+#Str(n*(n+1)/2)"d"),t);for(i=1,n,for(j=1,i,printf(fmt,t++));print)
F(5)
543

edits