title: How to format code so while loop is triggered C
body: <p>So I have two while loops. The outer most one does not loop back the way I want it to. </p>
  
  <p>I first tried:</p>
  
  <pre><code>#define true 1
  #define false 0
  </code></pre>
  
  <p>But then  set it to what I did below.</p>
  
  <p>My problem is that when I run the program, it terminates after an invalid input. I would like it to loop back to the start if something incorrect is entered.</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  
  int main()
  {
      int user_number;//create a new integer variable
      int last_multiple;//create a new integer variable for max in mult table
      int stilltrue = "false"; //create integer to use in while
      while (stilltrue == "false"){//initiate while loop
      printf("Please enter a positive integer you would like the table for and"
             " hit enter, then enter the max value of its multiplication "
             "table: \n");
  //takes two inputs and makes sure they are integers
      if(scanf("%d",&amp;user_number) == 1 &amp;&amp; scanf("%d",&amp;last_multiple)== 1){
          printf("The number you typed was %d and the "
             " value was %d \n\n",user_number,last_multiple);
  
      while (last_multiple &gt; 0){
  
          int multiple;//multiple of user_number and last_multiple
          multiple = user_number * last_multiple;
          printf("%d x %d is %d \n\n", user_number,last_multiple,multiple);
          last_multiple = last_multiple - 1;//decrease the last_multiple value by 1
          stilltrue = "true";
      }
  
      } else {
          printf("That was not an integer. \n");
          stilltrue = "false"; //This isn't needed here
  
      }break;
      }
      return 0;
  
  }
  </code></pre>
  
  <p>So what do I modify to make it loop back if it makes it to this spot</p>
  
  <pre><code>else {
          printf("That was not an integer. \n");
          stilltrue = "false"; //This isn't needed here
  
      }
  </code></pre>
  
  <p>Thank you for the help!</p>