title: How can I check if the user's input values are negative and eventually ask the user to insert them again?
body: <p>I am trying to prompt a user to enter two non negative values. If the user inputs a negative value the program asks user to re-enter a non negative value. Here is what my C program looks like thus far, please explain if I am misusing operators. </p>
  
  <pre><code>int main()
  {    
      int a,b;
      do {
          printf("enter two positive integers\n");
          scanf("%d""%d", &amp;a, &amp;b);
      } while (a&lt;0 || b&lt;0);
  
      printf("thank you");
  
      return 0;
  }   
  </code></pre>