Return the sum of all integers in `nums`. Variant **#44** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [44,45,46,47,48,49,0,1,2,3,4,5,6,7,8,9,10,11]
Output: 345
Constraints
Acceptance: 72% · Topics: array, math
← All practice problems