โ Back to Loops
Question 331
Sum of Array Elements
Sum of Array Elements
Given the array{ 5, 10, 15, 20, 25 }, use aforeachloop 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.