Return the sum of all integers in `nums`. Variant **#38** focuses on clean iteration without built-in shortcuts.
Example 1
Input: nums = [38,39,40,41,42,43,44,45,46,47,48,49]
Output: 522
Constraints
Acceptance: 66% · Topics: array, math
← All practice problems