CJCoding With Joseph

Sum of Even Elements

An array nums has been created with the values {10, 15, 20, 25, 30}. Add up only the even elements and print the total in this exact format:

Even sum: 60

Expected Output:

Even sum: 60
Topics:
Arrays
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (p, fori)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.