I have declared and initialized the variable outside the loop instead of after the first while. is is because of that I am getting the error...if so,how and why that makes a difference.kindly clarify