add example for std.stdio.stdin

Also removes some unnecessary trailing whitespace.
This doesn't help much on small screens and make snippets look awkward on normal screen. Also horizontal space is much more important as mobile devices are optimized for vertical scrolling.