Task 4 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.2 Array algorithms — find max

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

Fill in findMax so that it returns the largest element. Start from the first element rather than from 0 — the values may all be negative.

The program prints 9.

Your solution