title: how to use multiple input values to call same function?
body: <p>First I have to say that i'm completely new to programming and this is my first program. I've watched a 5 hour tutorial before I started this and now I've run into my first problem I can't solve myself. So I hope someone here can help me!</p>
  
  <p>I've written the following code</p>
  
  <pre><code>void printMainMenu();
  void printTourMenu();
  void assignment1();
  void assignment2();
  void assignment3();
  void assignment4();
  void assignment5();
  void assignment6();
  
  int main()
  {
  int userInput;
  printMainMenu();
  printf("\n\n");
  scanf("%d", &amp;userInput);
  if(userInput == 4||6)
      {
          printTourMenu();
      }
  
      if (userInput == 1)
      {
          assignment1();
      }
  
      if(userInput == 2)
      {
          assignment2();
      }
  
      if(userInput ==3)
      {
          assignment3();
      }
  
      if(userInput ==5)
      {
          assignment5();
      }
  
  return 0;
  </code></pre>
  
  <p>all the functions are just pure <code>printf</code> so I just want the user to be able to print 6 different things depending on what they click on, but instead of making two if-statements to do the very same thing depending on the input, I just try and make an if-statement that works with multiple inputs.</p>
  
  <p>the problem is in the <code>if(userInput == 4||6)</code> which i've tried with both 
  <code>4, 6</code> and <code>4||6</code> where it keeps printing the <code>printTourMenu</code> no matter what I input and then the function i'm actually calling. With <code>4&amp;&amp;6</code> it prints <code>printTourMenu</code> only when I input 4 but not when I input 6</p>
  
  <p>so what am I doing wrong? I hope someone will help this beginning programmer :D</p>