Return the sum of all integers in `nums`. Variant **#34** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [34,35,36,37,38,39,40,41]
Output: 300
Constraints
Acceptance: 62% · Topics: array, math
← All practice problems