The code is compiling but it is not giving the expected output.

Printable View