Well I want to know any logical error if any in this code.
Thx