Task 2 of 9 · 0 solved · 9 to go0%
You can read the problem, but answers are checked only for signed-in students. Sign in to answer →

5.1 Arrays — sum of first two

Total: 0 / 3 pts
Practice mode — check each part and get hints as you go.
Task

Fill in sumFirstTwo so that it returns the sum of the first two elements of the array.

For the array in main the program prints 11. Remember indexes start at 0.

Your solution