Hi Vijay,
The given code is not giving any syntax error. but i am bit confuse with the logic you want to implement with the code. If the delivery number is in the range you are passing true and comming out of the loop with the break statment.
So it mean you can not have more then one delivery no is the input file?
Please provide the full logic so we can try to help you.
regards,
Harish