how can i remove loop invariant in this
In the code below i have to remove all loop variant computations, my friend has given me this problem and I am not able to solve it for a long time.
In the code below i have to remove all loop variant computations, my friend has given me this problem and I am not able to solve it for a long time.