CJCoding With Joseph

Sum of Array Elements

Given the array { 5, 10, 15, 20, 25 }, use a foreach loop to add up every element and print the total:

75

Expected Output:

75
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.