โ Back to Arrays
Question 389
Sum of First and Last Element
Sum of First and Last Element
Given the array {4, 8, 15, 16, 23, 42}, print the sum of its first and last elements:
46Expected Output:
46
Topics:
Arrays
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.