Is this piece of code logically correct???

Printable View