Problem with annuity program: too few arguments
<p>I'm writing a program to work out a math equation to find annuity. the formula is as shown 
<code>A = M=[(1+r)^n-1/r(1+r)^n]</code> .
 The program compiler I am using is Devcpp it its worked with my other programs and i cannot find the error in this one. it tells me that there are too few arguments in the line with the formula.</p>

<p>any help is greatly appreciated :)</p>

<p>the code is:</p>

<pre><code>double M, r, n;

cout&lt;&lt;"M = ";
cin&gt;&gt;M;

cout&lt;&lt;"r = ";
cin&gt;&gt;r;

cout&lt;&lt;"n = ";
cin&gt;&gt;n;

cout&lt;&lt;endl;

cout&lt;&lt;"A = M=[(1+r)^n-1/r(1+r)^n]";
cout&lt;&lt;endl&lt;&lt;endl;

cout&lt;&lt;"A = ";
cout&lt;&lt;(M * ( pow ((( 1 + r ), n ) - 1 )/(r * ((pow(1 + r), n)))));
</code></pre>
