Here while loop runs till (i/j) becomes equal to 0.001.
Now, 0.001=(1/1000)
So, the while loop runs till (i/j) = (1/1000)
=> i*1000=j
Now i =2 and j=1
So,the while loop runs till j becomes equal to 2000.
So, the output will have more or less 2000 lines.
Hence option D is correct.