← Code LabSolidity0/50 solved · 0%
Control flow · easy

9. For loops

Sum an array.

Write `sum(uint256[] memory arr)` returning the total.
Required in your answer: for (arr.lengthtotal +=