How can a validate input of type int only... in a very simple but effective way? in c++
<p>There is an array with 9 spaces(elements), where those 9 numbers will be stored which are entered by user. </p>

<p>How would you make sure that they enter only those 9 numbers and that they are not the same?<br>
Finally <code>cout</code>(print) them from less to greater? </p>
