title: How do I fix this in C?
body: <p>I ask the user to enter a letter and each letter does something different. If they enter anything else it prints out the else statement at the end. The problem is that the else statement is printed no matter what I enter and it prints "Enter a letter: " twice. I've been searching google and stack overflow, and I don't know if I'm blind or what but I can't find the answer. Please help.</p>
  
  <pre><code>    while(false){ //I have a method here that returns true or false
      printf("Enter a letter: ");
      char letter;
      scanf("%c", &amp;letter);
  
      if(letter == 'a'){ //position left
          //do some code
      }else if(letter == 'd'){ //position right
          //do some code
      }else if(letter == 'w'){ //value up
          //do some code
      }else if(letter == 'x'){ //value down
          //do some code
      }else{
          printf("NEW MOVEMENT: Enter a valid command by keyword:\n");
          printf("Valid commands: a d w x\n");
      }
  }
  </code></pre>