modulus operator in c++ driving me mad
<p>my names joe and im running into a few issues with the modulus in c++</p>

<p>heres the problem:</p>

<pre><code>#include &lt;iostream&gt;
#include &lt;string&gt; 
using namespace std;

int main()
{
//In short, this is what i am trying to do:
//divide two numbers, and get both the quotient
//and the remainder
//however, as an example, this below produces a remainder
//of 10 
//110 \ 20 should equal 5 remainder 5
int firstInput =110, secondInput = 20;

int quotient = 0, remainder = 0;

quotient = firstInput / secondInput;

remainder = firstInput % secondInput;// i think the problem is here

cout &lt;&lt; "The quotient is " &lt;&lt; quotient &lt;&lt; " and the remainder is "
    &lt;&lt; remainder &lt;&lt; endl;


system("pause");
return 0; 
}
</code></pre>

<p>basically its not computing the remainder correctly.
any help of course would be much appreciated. cheers</p>
