title: How can I write this code using nested for loop?
body: <p>I have confused about this program... It is about printing current table that the range of voltage is from 0v to 30v and the range of resistance is from 100 to 1000 using <a href="https://en.wikipedia.org/wiki/Ohm%27s_law" rel="nofollow noreferrer">Ohm's law</a> like the below picture.</p>
  <p>I have written the code like this:</p>
  <pre><code>#include &lt;stdio.h&gt;
  
  int main() 
  {
  
      int v, r, c;
  
      for (v = 0; v &lt;= 50; v += 10) 
      {
          printf(&quot;:%d  &quot;, v);
      }
      for (r = 0; r &lt;= 1000; r += 100)
      {
          for()
      }
  }
  </code></pre>
  <p>How can I write this code using only nested for loop?</p>