title: How to get input integer from user c
body: <p>i want to get matrix values, rows and coloumn from user input. So i'm implementing <code>do while</code> to do this:
  This is only for the rows:</p>
  
  <pre><code>do {
          printf ("Inserisci il numero di righe ( intero-positivo-diverso da 0): ");
          scanf ("%d",&amp;righe);
      } while (righe&lt;=0);
  </code></pre>
  
  <p>I want to check that user insert only integers. what can i do?</p>