double compute()
{
double monthly, acumulation;
for(int y = 1; y<5; y++)
{
monthly = (Cost * numYears) / residual;
acumulation = (monthly * y);
return acumulation;
}
}
this is function i wrote to compute monthyly depreiation and accumulation. but the error i get is missing return statemen and i dont really get where that is coming from