title: Cleaner way to check if number is in array C++
body: <p>I am trying to check if a number is in an array in C++.
  The solution I have is kinda messy:</p>
  <pre><code>int luckynumbers[5] = { 3, 5, 8, 15, 19};
  
  std::cout &lt;&lt; &quot;Enter number from 1 - 20: &quot;;
  int choice;
  
  std::cin &gt;&gt; choice;
  if (choice == luckynumbers[0] || luckynumbers[1] || luckynumbers[2] || luckynumbers[3] || luckynumbers[4])
  {
      std::cout &lt;&lt; &quot;You are lucky!&quot;;
  }
  </code></pre>
  <p>Anyone has any tips/better practice ways to write the <code>if</code> statement part?</p>