title: How do I change my program to end an incorrect response from continously being printed?
body: <p>Im coding a Rock Paper Scissors program and eveything works completely fine except for one thing. In the line of the else condition, the one that contains the while loop <code>(choice != 1 || choice != 2 || choice != 3) </code> with the finishing <code>break;</code> command, it only ever works when an inncorect input like 4 is entered once but not a second time.</p>
  <p>When an incorrect input is entered the first time the program will ask for the input again but if you enter another inncorrect input it will just continously just keep printing the same printf line</p>
  <p><code>printf(&quot;Please choose 1 for ROCK, 2 for PAPER or 3 for SCISSORS.\n&quot;); </code> and then proceed to just keep printing</p>
  <p><code>Computer choice is ROCK. Please choose 1 for ROCK, 2 for PAPER or 3 for SCISSORS.</code></p>
  <pre><code>  while (counter != 10) {
  
      for (i=0;i&lt;1;i++) {
        /* Generate a random number and restrict it to the range 1 to 3 */
        randNum = rand()%3+1;
        /*printf(&quot;A random number between 1 and 3: %d\n&quot;, randNum);*/
      }
  
      printf(&quot;Please choose 1 for ROCK, 2 for PAPER or 3 for SCISSORS.\n&quot;);
  
      scanf(&quot;%d&quot;, &amp;choice);
  
  
      /* User picks an option */
      
        if ( choice == 1 ){
          printf(&quot;User choice is ROCK.\n&quot;);
        }
        else if ( choice == 2 ){
          printf(&quot;User choice is PAPER.\n&quot;);
        }
        else if ( choice == 3 ){
          printf(&quot;User choice is SCISSORS.\n&quot;);
        }  
        else {
          while (choice != 1 || choice != 2 || choice != 3) {
      
            printf(&quot;Please choose 1 for ROCK, 2 for PAPER or 3 for SCISSORS.\n&quot;);
            scanf(&quot;%d&quot;, &amp;choice);
            break;
        }
  
      }
  </code></pre>
  <p>The output when I enter an incorrect input twice</p>
  <pre><code>Please choose 1 for ROCK, 2 for PAPER or 3 for SCISSORS.
  4
  Please choose 1 for ROCK, 2 for PAPER or 3 for SCISSORS.
  4
  Computer choice is ROCK.
  Please choose 1 for ROCK, 2 for PAPER or 3 for SCISSORS.
  </code></pre>
  <p>I've already tried using a break command but even that doesnt fix the issue. What do I have to change in my program to fix this issue?</p>