Skip to content

Instantly share code, notes, and snippets.

@theshubhagrwl
Created July 12, 2020 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theshubhagrwl/c8fc72f1e88d7304767e57f166921011 to your computer and use it in GitHub Desktop.
Save theshubhagrwl/c8fc72f1e88d7304767e57f166921011 to your computer and use it in GitHub Desktop.
#include <iostream>
using namespace std;
int main()
{
int a[10] = {1,7,3,1,4,6,2,3,5,86};
int x = 2;
for (int i = 0; i < 10; ++i)
{
if(a[i]==x)
{
cout << "Found" << endl;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment