FIND X


Submit solution

Points: 5 (partial)
Time limit: 5.0s
Memory limit: 10M

Author:
Problem type
Allowed languages
C

Write a C program to search for an element in the given integer array. Print -1 if the element is not found.

INPUT FORMAT

N-number of elements

List of integers

x - value to be searched

OUTPUT FORMAT

Index of the integer x (Index starts from 0)

Example

INPUT

8
6 7 3 5 8 0 1
5

OUTPUT

3

Comments

There are no comments at the moment.