#pragma GCC diagnostic ignored "-fpermissive"
#include <iostream>
usingnamespace std;
int main()
{
int a[256];
int n, num;
cout << "Enter the total number of values in array : " << endl;
cin >> n;
//get the values
for(int i = 0; i <= n; i++)
{
cout << "Enter the number : " << endl;
cin >> a[i];
}
//now to search the number
cout << "Enter the number to be Searched : " << endl;
cin >> num;
//search loop
for(int i = 0; i < n; i++)
{
if(a[i] == num)
break;
}
if(i == n)
cout << "Number not found..." << endl;
else
cout << "Number is at : " << i + 1 << " Position." << endl;
return 0;
}