// This program demonstrates linear search algorithm and its variations. // Explanation: Linear search sequentially checks each element until the target is found.