V
Vinnie
Can anyone tell me why the for cycle does not work? I only get the
multiplication, but the FOR does not start:
protected double CalFutureValue(double initial_value, double
interest_rate, int years)
{
double future_value =0;
double alfa = 0;
for (int i = 1; i <= years; i++)
{
alfa = (initial_value * (interest_rate / 100)) ;
valore_futuro = (alfa + initial_value);
}
}
the fact is that i don't get any error message, it's just not making
the calculation.
Thanks
multiplication, but the FOR does not start:
protected double CalFutureValue(double initial_value, double
interest_rate, int years)
{
double future_value =0;
double alfa = 0;
for (int i = 1; i <= years; i++)
{
alfa = (initial_value * (interest_rate / 100)) ;
valore_futuro = (alfa + initial_value);
}
}
the fact is that i don't get any error message, it's just not making
the calculation.
Thanks