problem with the code

Thank you BJ HENRY for your timely reply , it was very helpful. The solution worked..