I keep getting the same answer, no matter what I put in : <p>We're doing an assignment in my computer science class that requires us to find the future value of an investment after "n" number of years that the user inputs. It's written in C++. This is the code as I have it now:</p>

<pre><code>#include &lt;iostream&gt;
using namespace std;
int main() {
    int P=1000;
    int i=0.0275;
    int FV;
    int n;
    cout &lt;&lt; "enter number of years:"&lt;&lt; endl;
    cin &gt;&gt; n;
    cout &lt;&lt; "the future value is:"&lt;&lt; endl;
    FV = P*(1+(i*n));
    cout &lt;&lt; FV &lt;&lt; endl;
    return 0;
    }
</code></pre>

<p>I keep ending up with an answer of 1000 no matter what "n" I input. Can someone tell me what's wrong with the code?</p>
