title: How to prevent users from inputting letters or numbers?
body: <p>I have a simple problem;</p>
  
  <p>Here is the code :</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  main(){
   int input;
   printf("Choose a numeric value");
   scanf("%d",&amp;input);
  }
  </code></pre>
  
  <p>I want the user to only enter numbers ...
  So it has to be something like this :</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  main(){
   int input;
   printf("Choose a numeric value");
   do{
     scanf("%d",&amp;input);
   }while(input!= 'something');
  }
  </code></pre>
  
  <p>My problem is that I dont know what to replace in 'something' ... How can I prevent users from inputting alphabetic characters ?</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I just got something interesting :</p>
  
  <pre><code>#include&lt;stdio.h&gt;
  main(){
   int input;
   printf("Choose a numeric value");
   do{
     scanf("%d",&amp;input);
   }while(input!= 'int');
  }
  </code></pre>
  
  <p>Adding 'int' will keep looping as long as I enter numbers, I tried 'char' but that didnt work .. surely there is something for alphabets right ? :S
  Please reply !</p>
  
  <p>Thanks for your help !</p>