What's wrong with simple Scanner program?

Printable View