Read an integer N.
This number indicates how many values the array will have.
Then, read N integers (one per line) and store them in an array.
Finally, read another integer k and search for k in the array.
If found, show its position; otherwise, indicate that it was not found.
Hints:
for loop to read the data and store it in the array.for loop to search for k, and break when found.An integer N, followed by N integers, one per line, followed by an integer k.
If k is found, display Posicion {index} (where {index} is the 0-based position).
If k is not found, display No encontrado.
Input:
5
3
7
1
9
5
9
Output:
Posicion 3