02-26-2019 03:57 AM
Hi,
I don't think both will work out since my need is different. If I enter the 7th year, the algorithm should calculate 1st year's cost with the respective values, then the 2nd year's value alone and add that with the first one and so on. Please give me a solution for that.
02-26-2019 04:07 AM
02-26-2019 06:28 AM
Then use a loop!
Please don't describe a problem, get solutions, then say they won't work because there is more to your problem that you didn't bother to describe up until now.
03-05-2019 12:14 AM
Thanks. I made some more changes and got the solution. Thanks for all your suggestions and helps.