The above problem result is zero bcz n 998 in one position. our condition is n>1000 but we give up to so on (998-1)(998-2)(998-3)(998-4)………..(998-998)(998-999)(998-1000) (998-n) n>1000 1 is not greater then 1000 how it is possible (998-1)
As n is greater than 1000. but you have not observed that n is getting reduced by one in each step. so at certain point n will become 998. And 998-998 will be '0'. Therefore the answer is '0'.