i= 85 , 84, 83, 82,81,..............
n= 5,6,7,8,9,.............................
difference= 80,78,76,74,.......0( our loop will stop only when i becomes less than n )
In the series 80,78,76,74,.......0 , No of terms = 80/2+1 =41
Value of i=85-41=44
value of n=5+41=46
Hence at 42nd iteration loop will stop and make total 42 comparisions.