Jump to content

Greatest subsequential sum: Difference between revisions

Nimrod -> Nim
(→‎{{header|REXX}}: changed/add comments and whitespace, aligned structure and statements better.)
(Nimrod -> Nim)
Line 1,428:
Output: the same as for Rexx
 
=={{header|NimrodNim}}==
<lang nimrodnim>proc maxsum(s): int =
var maxendinghere = 0
for x in s:
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.