// coded by Vaibhav Yadav
#include <iostream>
#define ll long long
ll index(ll a[],ll size,ll x);
using namespace std;
int main() {
ll n,i,x;
cout<<"Enter Your Number of Elements in array: ";
cin>>n;
ll a[n];
for(i=0;i<n;i++){
cout<<"Enter Your Element no "<<i+1<<": ";
cin>>a[i];
}
cout<<"Enter the element you want to search for: ";
cin>>x;
if(index(a,n,x)>=0)
cout<<"Element Is found at position "<<index(a,n,x)<<endl;
else
cout<<"Element is not found"<<endl;
return 0;
}
ll index(ll a[], ll size, ll x){
if(a[size-1]==x)
return size-1;
else
index(a,size-1,x);
}