in reply to nested while loops

Hi sivaratna

Please put your code between <code> and </code> tags in order to preserve the formatting (especially code indentation which I hope that you are using). Right now, your code is very difficult to read, especially when it comes to nested loops.