A+B: Difference between revisions

Content added Content deleted
(add JavaScript)
m (→‎{{header|Icon and Unicon}}: Don't use header like this)
Line 164: Line 164:
main = getLine >>= (\xs -> print $ sum' xs)</lang>
main = getLine >>= (\xs -> print $ sum' xs)</lang>


=={{header|Icon and Unicon}}==
==Icon and Unicon==


==={{header|Icon}}===
==={{header|Icon}}===
Line 179: Line 179:


The Icon solution also works in Unicon.
The Icon solution also works in Unicon.

=={{header|Java}}==
=={{header|Java}}==
<lang java>import java.util.*;
<lang java>import java.util.*;