Sum of squares: Difference between revisions

m
(Emacs Lisp: Simplify solution)
Line 2,676:
 
=={{header|Unix shell}}==
<lang Unixshell>$ cat toto
1
2
Line 2,682:
8
16
$ cat toto toto | paste -sd*
1*2*4*8*16*1*2*4*8*16
$ cat toto toto | paste -sd* | bc -l
1048576
</lang>
<lang shell>cat titi
0
cat titi titi | paste -sd* | bc -l
0
</lang>
{{out}}
<pre>
with the limits of what can compute bc of course.
</pre>
 
=={{header|Ursala}}==
Anonymous user