Jump to content

Floyd's triangle: Difference between revisions

→‎{{header|PARI/GP}}: remove erroneous correction
(→‎{{header|PARI/GP}}: remove erroneous correction)
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)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.