Sign in to run tests against edge cases and save your code automatically.
Problem Description
Medium
Linear Search
PROSorting & Searching
1D & 2D Arrays
Iteration & Loops
Assume an array `arr` holds 5 elements. Write a program that inputs 5 numbers sequentially to populate the array, and then inputs a final target number `T`. The program should output "Found" if `T` exists within the array, and "Not Found" otherwise.
Example Input
10
20
30
40
50
30
Example Output
Found
Success Rate:
0% (0 passed / 0 attempted)
Code
Draft auto-saved
Test Results
Click "Test Code" to evaluate your code against the tests.