title: Why does computing a formula with multiple unknowns not working?
body: <p>I'm trying to compute the formula &quot;V / I = R&quot; in my program by asking the user to input values for V and I. Unfortunately my program does not compile and I'm not sure why.</p>
  <hr />
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main()
  {
      int V, I, R;
      cout &lt;&lt; &quot;Please enter the voltage: &quot; &lt;&lt; endl;
      cin &gt;&gt; V;
      cout &lt;&lt; &quot;Please enter the curruent: &quot; &lt;&lt; endl;
      cin &gt;&gt; I;
  
      V / I = R;
      cin &gt;&gt; R;
      cout &lt;&lt; &quot;The value of the resistor is: &quot; &lt;&lt; R &lt;&lt; endl;
  
      system(&quot;PAUSE&quot;);
  }
  </code></pre>