Quote (Minkomonster @ Nov 1 2014 09:51pm)
Then initialize the variable.
I believe I did ?
{
const decimal r = 0.05m;
decimal p = 1000;
int n = 1;
string myString; for (n = 1; n <= 5; n++)
{
p = p * (1 + r);
myString = p.ToString("C") + "\n";
}
MessageBox.Show(myString, "Compound Interest", MessageBoxButtons.OK, MessageBoxIcon.Information);
}