title: How to read a number above 999 that is separated by a comma (eg. 10,000)?
body: <p>I'm new to C (and programming) and it's possible that my question can be answered with some basic searching and reading; please point me to an answer to the question if it exists.</p>
  
  <p>Let's say that I want to read a number that can possibly be above 999 from the user. From my experience, if I enter the value 10,000 (including the comma), the program would read the number until the comma and then stop taking input. Thus, the input would be 10 instead of 10000.</p>
  
  <p><strong>How can I make it read '10,000' as if it is 10000?</strong></p>