Jump to content

Sum of a series: Difference between revisions

Add SETL
imported>Polarit
(Elm version)
(Add SETL)
Line 2,926:
writeln(sum digits 6 lpad 8);
end func;</syntaxhighlight>
 
=={{header|SETL}}==
<syntaxhighlight lang="setl">print( +/[1/k**2 : k in [1..1000]] );</syntaxhighlight>
{{out}}
<pre>1.64393456668156</pre>
 
=={{header|Sidef}}==
2,114

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.