Thanks..!!

I want to get a value at every iteration,
e.g. if the loop runs for 10 times, i want to get the resultant then add it to a constant
so at every iteration, the program will return (loop value + constant)

The code is for least squares method, curve fitting