title: Signed integer overflow: 999999999 * 10 cannot be represented in type 'int' Error
body: <p>Why is there a runtime error? I made <code>range2</code> a long long.</p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>/*VARIABLES FOR WHILE LOOP*/
   long long range1 = 9;
   int length = 1;
  
   /*FIND NUM'S LENGTH*/
   while (NUM &gt; range1)     
   {
      long long range2 = range1 * 10 + 9;
      length += 1;
   }
  </code></pre>
  
  <p><strong>Error:</strong>   </p>
  
  <blockquote>
    <p>credit.c:25:25: runtime error: signed integer overflow: 999999999 * 10 cannot be represented in type 'int'</p>
  </blockquote>