Find Index of Value
HardWrite a program that inputs 5 numbers sequentially to populate an array, and then inputs a target number `T`. Output the 1-based position (1 to 5) of the first occurrence of `T`. If it is not found, output -1.
Example Input
10
20
30
40
50
30
Example Output
3
0% (0 passed / 0 attempted)