title: Looping Input Validation for a double type, but the user inputs "abc" as input
body: <p>If the user inputs &quot;abc&quot; as the input, the Do-While Loop loops around 3 times, one time for each letter. However, I want it to loop only once.</p>
  <pre><code>int main(void) {
    do {
      printf(&quot;Enter how much money you can contribute: &quot;);
      numArgsRead = scanf(&quot; %lf&quot;, &amp;availableFundsToContribute);
      scanf(&quot;%c&quot;, &amp;finalValOnLine);
    } while (!((availableFundsToContribute &gt; 0) &amp;&amp; (numArgsRead == 1) &amp;&amp; (finalValOnLine == '\n')));
    return 0;
   }
  </code></pre>
  <p>Here's what my output looks like:</p>
  <pre><code>Enter how much money you can contribute: abc
  Enter how much money you can contribute: Enter how much money you can contribute: Enter how much money you can contribute: 
  </code></pre>
  <p>Here's what I want it to look like:</p>
  <pre><code>Enter how much money you can contribute: abc
  Enter how much money you can contribute: 
  </code></pre>