CJCoding With Joseph

Print the Sum of an Array

The array nums holds [1, 2, 3, 4]. Add all of its numbers together and print the total so the output is exactly:

10

Expected Output:

10
Topics:
Printing
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (clog, fn, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.