9 billion names of God the integer: Difference between revisions
Content deleted Content added
Thundergnat (talk | contribs) m →{{header|GAP}}: Regularize non-standard header markup |
→{{header|JavaScript}}: fixed nonsense/untested code... |
||
Line 2,167: | Line 2,167: | ||
} |
} |
||
// PL clearly this was not tested: |
|||
console.log("Sums")[23, 123, 1234, 12345].foreach(function (a) { |
// console.log("Sums")[23, 123, 1234, 12345].foreach(function (a) { |
||
console.log("Sums"); |
|||
[23, 123, 1234, 12345].forEach(function (a) { |
|||
var s = cumu(a); |
var s = cumu(a); |
||
console.log(a, s[s.length - 1]); |
console.log(a, s[s.length - 1]); |