Code compiles fine but doesn't run Properly

Printable View