How to terminate Scanf() if input entered after whitespace is invalid one in C? : <p>Suppose I have to enter 3 inputs separated by space.
Let it be "3 4 5".
now if user inputs "3 10 5" and as only single digit is accepted as a constraint </p>

<p>I want to make scanf() terminate after 10 when space is entered. </p>

<p>Please help. </p>
