title: How do I force user to input a positive integer?
body: <p>Force user to input a positive integer and put user in a loop till they do.</p>
  
  <p>So I want everything including characters not allowed just over > 0 </p>
  
  <p>I tried the following:</p>
  
  <pre><code>while (i &lt; 0) do { 
      printf("please input a number that's positive"); 
      scanf("%d", i); 
  }
  </code></pre>