I don't know how to iterate my for loop.
I have some values in V[i] (assume V[i] as double) already.
Now V[i] is updated by below for loop.
I want to subtract both old V[i] and new V[i] and check whether it is greater than 0.00005.
Once this condition fails the for loop,that is iteration, must be terminated.
Important point to be noted is that while checking that condition it must be done for all V (0,1,2...n) values and then the loop must be executed.
I hope that my question is clear to understand.If not please tell me. I will elaborate.
for(int i=0;i<n;i++)
{
if("some_statement")
{
//find V[i]
}
else if("some_statement")
{
//find V[i]
}
}