Skip to content

Task 5 of 36 · Computer science · Class 7

What if there's no element?

Task

The algorithm linearly searches the array [2, 6, 8] for 5. How should it end the action correctly?

Your answer

Write your answer, check the solution, then rate it against the criteria.

This task and its solution are original SzkolaNa6 material. They are not a copy of a task from a textbook or another website.