getting garbage values in the ouput i guess code is correct !!!

Printable View